From c4e62bfdd15d9b0ab7ffed7629f5bbcb4e69bd33 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 21 Jan 2009 00:48:37 +0000 Subject: 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 --- slv2/pluginclasses.h | 7 +++++++ slv2/port.h | 2 +- slv2/value.h | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) (limited to 'slv2') 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); -- cgit v1.2.1