Fix crash while TCT running on common profile 70/100470/1 accepted/tizen/common/20161128.170730 accepted/tizen/ivi/20161129.001005 accepted/tizen/mobile/20161129.000915 accepted/tizen/tv/20161129.000934 accepted/tizen/wearable/20161129.000949 submit/tizen/20161128.085038
authorJeongmo Yang <jm80.yang@samsung.com>
Mon, 28 Nov 2016 08:37:03 +0000 (17:37 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Mon, 28 Nov 2016 08:37:03 +0000 (17:37 +0900)
[Version] 0.10.95
[Profile] Common
[Issue Type]
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-3.0-mobile_20161122.5]

Change-Id: Ia52d0f1ba7087d7127793204aad41a34a80c9adc
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
packaging/libmm-camcorder.spec
src/mm_camcorder_resource.c

index 55a9685..07ddedb 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-camcorder
 Summary:    Camera and recorder library
-Version:    0.10.94
+Version:    0.10.95
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index e09afb5..5dde52d 100644 (file)
@@ -450,9 +450,11 @@ int _mmcamcorder_resource_manager_deinit(MMCamcorderResourceManager *resource_ma
                resource_manager->mrp_loop = NULL;
        }
 
-       g_thread_join(resource_manager->starter);
-       g_thread_unref(resource_manager->starter);
-       resource_manager->starter = NULL;
+       if (resource_manager->starter) {
+               g_thread_join(resource_manager->starter);
+               g_thread_unref(resource_manager->starter);
+               resource_manager->starter = NULL;
+       }
 
        if (resource_manager->mloop) {
                _mmcam_dbg_log("destroy resource mainloop");