g_timeout_add (500, ghb_timer_cb, (gpointer)ud);
// Everything should be go-to-go. Lets rock!
gtk_main ();
- //I'd like to do this, but hb threads seem to persist for a while
- //so closing crashes :(
ghb_backend_close();
if (ud->queue)
ghb_value_free(ud->queue);
g_markup_parse_context_parse(ctx, buf, len, &err);
g_markup_parse_context_end_parse(ctx, &err);
g_markup_parse_context_free(ctx);
+ if (pd.key) g_free(pd.key);
+ if (pd.value) g_free(pd.value);
g_queue_free(pd.stack);
g_queue_free(pd.tag_stack);
return pd.plist;