diff options
author | David Robillard <d@drobilla.net> | 2008-01-15 22:26:24 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-01-15 22:26:24 +0000 |
commit | 2928884b67f132aec724026fddff4df3238bec37 (patch) | |
tree | c2c737edb69fb25a7ae35b239bdac26f8ccee2f1 /src | |
parent | ddba2b97ba27636f9f6f6ae1bef9781fb8ea5f0c (diff) | |
download | lilv-2928884b67f132aec724026fddff4df3238bec37.tar.gz lilv-2928884b67f132aec724026fddff4df3238bec37.tar.bz2 lilv-2928884b67f132aec724026fddff4df3238bec37.zip |
Fix RDF warning (freeing NULL query results).
git-svn-id: http://svn.drobilla.net/lad/slv2@1055 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/plugin.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugin.c b/src/plugin.c index babb65a..b2af232 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -548,7 +548,8 @@ slv2_plugin_has_feature(SLV2Plugin p, const bool ret = results && (librdf_query_results_get_boolean(results) > 0); - librdf_free_query_results(results); + if (results) + librdf_free_query_results(results); return ret; } |