--- a/jingle/check.c Wed Jun 09 22:16:21 2010 +0200
+++ b/jingle/check.c Fri Jun 11 01:56:34 2010 +0200
@@ -145,10 +145,13 @@
if (!g_strcmp0(child->name, "content")) {
cn = check_content(child, err);
if(cn == NULL) {
- g_assert (*err != NULL);
+ if(jn->content != NULL) {
+ g_slist_foreach(jn->content, (GFunc)g_free, NULL);
+ g_slist_free(jn->content);
+ }
return FALSE;
- }
- jn->content = g_slist_append(jn->content, cn);
+ }
+ jn->content = g_slist_append(jn->content, cn);
}
}
return TRUE;
@@ -165,7 +168,7 @@
return -1;
}
-GQuark jingle_check_error_quark()
+GQuark jingle_check_error_quark(void)
{
return g_quark_from_string("JINGLE_CHECK_ERROR");
}