Crash issue resolved for fhub without account login 83/305883/1 accepted/tizen_7.0_unified tizen_7.0 accepted/tizen/7.0/unified/20240214.013032
authorAbhimanyu Swami <abhimanyu1.s@samsung.com>
Mon, 12 Feb 2024 16:06:28 +0000 (21:36 +0530)
committerKamaljeet Chauhan <kamal.jc@samsung.com>
Mon, 12 Feb 2024 16:19:52 +0000 (21:49 +0530)
Change-Id: I44dbd63cde333419d82c0ed91ed9add6a0763302
Signed-off-by: Kamaljeet Chauhan <kamal.jc@samsung.com>
location/manager/location.c
packaging/liblbs-location.spec

index f6bff5d..97d02dc 100644 (file)
@@ -148,7 +148,12 @@ EXPORT_API int
 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;
 }
 
index cbe8f14..477d841 100755 (executable)
@@ -1,6 +1,6 @@
 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