From: <svn...@op...> - 2009-06-23 15:22:43
|
Author: bellmich Date: Tue Jun 23 17:22:36 2009 New Revision: 1115 URL: http://libsyncml.opensync.org/changeset/1115 Log: fixed potential memory leak Modified: trunk/libsyncml/dev_inf_api/sml_dev_inf_data_store.c Modified: trunk/libsyncml/dev_inf_api/sml_dev_inf_data_store.c ============================================================================== --- trunk/libsyncml/dev_inf_api/sml_dev_inf_data_store.c Tue Jun 23 17:15:30 2009 (r1114) +++ trunk/libsyncml/dev_inf_api/sml_dev_inf_data_store.c Tue Jun 23 17:22:36 2009 (r1115) @@ -368,9 +368,9 @@ sml_dev_inf_data_store_new (const gchar *source_ref, GError **error) { CHECK_ERROR_REF + g_type_init(); sml_return_val_error_if_fail(source_ref, NULL, error, SML_ERROR_GENERIC, "The name of the local ressource is missing.") sml_return_val_error_if_fail(strlen(source_ref) > 0, NULL, error, SML_ERROR_GENERIC, "The name of the local ressource must not be empty.") - g_type_init(); SmlDevInfDataStore *self = g_object_new (SML_TYPE_DEV_INF_DATA_STORE, NULL); sml_return_val_error_if_fail(self, NULL, error, SML_ERROR_GENERIC, "Cannot create a new instance of SmlDevInfDataStore - out of memory.") |