From 131f6f4456a639fed721df603f0e0c722adc8e91 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 18 Feb 2013 17:48:58 +0000 Subject: Fix reference counting semantics of sord_get(). git-svn-id: http://svn.drobilla.net/sord/trunk@286 3d64ff67-21c5-427c-a301-fe4f08042e5a --- sord/sord.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sord/sord.h') diff --git a/sord/sord.h b/sord/sord.h index 04ea676..2269d13 100644 --- a/sord/sord.h +++ b/sord/sord.h @@ -401,10 +401,11 @@ sord_search(SordModel* model, Search for a single node that matches a pattern. Exactly one of @p s, @p p, @p o must be NULL. This function is mainly useful for predicates that only have one value. + The returned node must be freed using sord_node_free. @return the first matching node, or NULL if no matches are found. */ SORD_API -const SordNode* +SordNode* sord_get(SordModel* model, const SordNode* s, const SordNode* p, -- cgit v1.2.1