summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-01-20 04:49:20 +0000
committerDavid Robillard <d@drobilla.net>2008-01-20 04:49:20 +0000
commitfc33dd91c51f2806afa09cf53469bee6a1f53cfd (patch)
tree2f42b229f3980471986c3414cfb68463d9560821
parent5c48e8a43e13b5b0ce8ee56f4e7b6000a979b37b (diff)
downloadlilv-fc33dd91c51f2806afa09cf53469bee6a1f53cfd.tar.gz
lilv-fc33dd91c51f2806afa09cf53469bee6a1f53cfd.tar.bz2
lilv-fc33dd91c51f2806afa09cf53469bee6a1f53cfd.zip
Fix librdf failed assertion warning (freeing a NULL librdf_uri).
git-svn-id: http://svn.drobilla.net/lad/slv2@1082 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/pluginclass.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pluginclass.c b/src/pluginclass.c
index b3da0b5..383e458 100644
--- a/src/pluginclass.c
+++ b/src/pluginclass.c
@@ -43,8 +43,10 @@ slv2_plugin_class_new(SLV2World world, const char* parent_uri, const char* uri,
void
slv2_plugin_class_free(SLV2PluginClass plugin_class)
{
+ assert(plugin_class->uri);
librdf_free_uri(plugin_class->uri);
- librdf_free_uri(plugin_class->parent_uri);
+ if (plugin_class->parent_uri)
+ librdf_free_uri(plugin_class->parent_uri);
free(plugin_class->label);
free(plugin_class);
}