Permalink
Browse files

fix for Issue 2

  • Loading branch information...
1 parent 5abb39c commit 52ec0ae9a8e0c5e8cc4a97fefe3c8887dccf29d6 @interactive-matter committed Aug 19, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 aJSON.cpp
View
@@ -69,7 +69,7 @@ void aJsonClass::deleteItem(aJsonObject *c)
next = c->next;
if (!(c->type & aJson_IsReference) && c->child)
deleteItem(c->child);
- if (!(c->type & aJson_IsReference) && c->value.valuestring)
+ if ((c->type == aJson_String) && c->value.valuestring)
free(c->value.valuestring);
if (c->name)
free(c->name);

0 comments on commit 52ec0ae

Please sign in to comment.