summaryrefslogtreecommitdiffstats
path: root/slv2
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-01-21 00:48:37 +0000
committerDavid Robillard <d@drobilla.net>2009-01-21 00:48:37 +0000
commitc4e62bfdd15d9b0ab7ffed7629f5bbcb4e69bd33 (patch)
treefdafe2c585c6f53803facfd26ee849dacc1a99c1 /slv2
parentc59b0892ace3ab0fb743335b36abbd72591d4a7b (diff)
downloadlilv-c4e62bfdd15d9b0ab7ffed7629f5bbcb4e69bd33.tar.gz
lilv-c4e62bfdd15d9b0ab7ffed7629f5bbcb4e69bd33.tar.bz2
lilv-c4e62bfdd15d9b0ab7ffed7629f5bbcb4e69bd33.zip
Add slv2_plugin_classes_free to public API (fix ticket #324).
Fix memory leak in slv2_plugin_get_port_float_values. Fix memory leak in slv2_plugin_get_supported_features. Fix memory leak in slv2_port_has_property. Fix several memory leaks in slv2_test program. git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@1921 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'slv2')
-rw-r--r--slv2/pluginclasses.h7
-rw-r--r--slv2/port.h2
-rw-r--r--slv2/value.h2
3 files changed, 9 insertions, 2 deletions
diff --git a/slv2/pluginclasses.h b/slv2/pluginclasses.h
index 5a13dbe..7ad3455 100644
--- a/slv2/pluginclasses.h
+++ b/slv2/pluginclasses.h
@@ -30,6 +30,13 @@ extern "C" {
*/
+/** Free an SLV2PluginClasses.
+ * Note that only certain plugin classes should be freed by the user
+ * (as specified by the documentation of the slv2 function which returned it).
+ */
+void slv2_plugin_classes_free(SLV2PluginClasses classes);
+
+
/** Get the number of plugins in the collection.
*/
unsigned
diff --git a/slv2/port.h b/slv2/port.h
index 5dbe454..be6e03b 100644
--- a/slv2/port.h
+++ b/slv2/port.h
@@ -106,7 +106,7 @@ slv2_port_get_symbol(SLV2Plugin plugin,
/** Get the name of a port.
*
* This is guaranteed to return the untranslated name (the doap:name in the
- * data file without a language tag). Returned value must be free()'d by
+ * data file without a language tag). Returned value must be freed by
* the caller.
*
* Time = Query
diff --git a/slv2/value.h b/slv2/value.h
index db447dd..f1af35f 100644
--- a/slv2/value.h
+++ b/slv2/value.h
@@ -89,7 +89,7 @@ slv2_value_equals(SLV2Value value, SLV2Value other);
* 1.0
* 1
*
- * Returned string is newly allocation and must be freed by caller.
+ * Returned string is newly allocated and must be freed by caller.
*/
char*
slv2_value_get_turtle_token(SLV2Value value);