diff options
Diffstat (limited to 'src/pluginclasses.c')
-rw-r--r-- | src/pluginclasses.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pluginclasses.c b/src/pluginclasses.c index 5cf56ec..1b578f1 100644 --- a/src/pluginclasses.c +++ b/src/pluginclasses.c @@ -38,6 +38,7 @@ void slv2_plugin_classes_free(SLV2PluginClasses list) { //if (list != world->plugin_classes) + if (list) raptor_free_sequence(list); } @@ -45,7 +46,7 @@ slv2_plugin_classes_free(SLV2PluginClasses list) unsigned slv2_plugin_classes_size(SLV2PluginClasses list) { - return raptor_sequence_size(list); + return (list ? raptor_sequence_size(list) : 0); } |