diff options
author | David Robillard <d@drobilla.net> | 2009-01-21 00:48:37 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-01-21 00:48:37 +0000 |
commit | c4e62bfdd15d9b0ab7ffed7629f5bbcb4e69bd33 (patch) | |
tree | fdafe2c585c6f53803facfd26ee849dacc1a99c1 /src/port.c | |
parent | c59b0892ace3ab0fb743335b36abbd72591d4a7b (diff) | |
download | lilv-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 'src/port.c')
-rw-r--r-- | src/port.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -85,21 +85,16 @@ slv2_port_has_property(SLV2Plugin p, SLV2Value property) { assert(property); - - SLV2Values results = NULL; - char* query = slv2_strjoin( "SELECT DISTINCT ?port WHERE {\n" "<", slv2_value_as_uri(p->plugin_uri), "> lv2:port ?port ." "?port lv2:symbol \"", slv2_value_as_string(port->symbol), "\";\n", " lv2:portProperty <", slv2_value_as_uri(property), "> .\n}", NULL); - results = slv2_plugin_query_variable(p, query, 0); - + SLV2Values results = slv2_plugin_query_variable(p, query, 0); const bool ret = (slv2_values_size(results) > 0); - + slv2_values_free(results); free(query); - free(results); return ret; } |