From: <svn...@op...> - 2009-10-05 12:47:20
|
Author: bellmich Date: Mon Oct 5 14:47:07 2009 New Revision: 1314 URL: http://libsyncml.opensync.org/changeset/1314 Log: fixed several leaking references All fixed reference counters are related to the DevInf implementation. (SyncML 1.2) Modified: trunk/libsyncml/parser/sml_xml_parse.c Modified: trunk/libsyncml/parser/sml_xml_parse.c ============================================================================== --- trunk/libsyncml/parser/sml_xml_parse.c Mon Oct 5 14:41:14 2009 (r1313) +++ trunk/libsyncml/parser/sml_xml_parse.c Mon Oct 5 14:47:07 2009 (r1314) @@ -3420,6 +3420,8 @@ goto error; if (!sml_dev_inf_property_add_param(property, param, error)) goto error; + g_object_unref(param); + param = NULL; break; case SML_DEVINF_CTCAP_SIZE: if (!sml_dev_inf_property_set_size(property, atoi(value), error)) @@ -3539,9 +3541,14 @@ goto error; } } + g_object_unref(ct); + ct = NULL; + if (!sml_dev_inf_add_ctcap(devinf, ctcap, error)) goto error; + g_object_unref(ctcap); + ctcap = NULL; smlTrace(TRACE_EXIT, "%s", __func__); return TRUE; |