Browse Source

Fix memory management on collection parsing.

git-svn-id: http://svn.drobilla.net/serd/trunk@7 490d8e77-9747-427b-9fa3-0b8f29cee8a0
zrythm_meson
David Robillard 12 years ago
parent
commit
fc2fe59309
  1. 5
      src/reader.c

5
src/reader.c

@ -288,6 +288,11 @@ static void @@ -288,6 +288,11 @@ static void
pop_string(SerdReader parser, Ref ref)
{
if (ref) {
if (ref == parser->rdf_nil.value
|| ref == parser->rdf_first.value
|| ref == parser->rdf_rest.value) {
return;
}
#ifdef STACK_DEBUG
if (!stack_is_top_string(parser, ref)) {
fprintf(stderr, "attempt to pop non-top string %s\n", deref(parser, ref)->buf);

Loading…
Cancel
Save