From: <svn...@op...> - 2009-06-19 16:02:53
|
Author: bellmich Date: Fri Jun 19 18:02:41 2009 New Revision: 1101 URL: http://libsyncml.opensync.org/changeset/1101 Log: added a missing g_type_init If GQuarks are used together with a delayed g_type_init then this causes memory leaks. Modified: trunk/libsyncml/dev_inf_api/sml_dev_inf_ctcap.c Modified: trunk/libsyncml/dev_inf_api/sml_dev_inf_ctcap.c ============================================================================== --- trunk/libsyncml/dev_inf_api/sml_dev_inf_ctcap.c Fri Jun 19 17:23:01 2009 (r1100) +++ trunk/libsyncml/dev_inf_api/sml_dev_inf_ctcap.c Fri Jun 19 18:02:41 2009 (r1101) @@ -144,6 +144,8 @@ SmlDevInfCTCap* sml_dev_inf_ctcap_new (SmlDevInfContentType *ct, GError **error) { + g_type_init(); + if (ct == NULL) { *error = g_error_new(SML_ERROR, SML_ERROR_GENERIC, "Every CTCap must have a content type."); return NULL; |