Change-Id: I44dbd63cde333419d82c0ed91ed9add6a0763302
Signed-off-by: Kamaljeet Chauhan <kamal.jc@samsung.com>
location_free(LocationObject *obj)
{
g_return_val_if_fail(obj, LOCATION_ERROR_PARAMETER);
- g_object_unref(obj);
+
+ GType g_type = G_TYPE_FROM_INSTANCE(obj);
+ int count = g_type_get_instance_count (g_type);
+ if (count)
+ g_object_unref(obj);
+
return LOCATION_ERROR_NONE;
}
Name: liblbs-location
Summary: Location Based Service Library
-Version: 1.4.7
+Version: 1.4.8
Release: 1
Group: Location/Libraries
License: Apache-2.0