Initialize src after destroying it 99/145099/1
authorSemun Lee <semun.lee@samsung.com>
Mon, 21 Aug 2017 08:40:22 +0000 (17:40 +0900)
committerSemun Lee <semun.lee@samsung.com>
Mon, 21 Aug 2017 08:40:22 +0000 (17:40 +0900)
Change-Id: Ia71c80385bcc200b167f0e65bb7601a582d4309a
Signed-off-by: Semun Lee <semun.lee@samsung.com>
src/launch_glib.c

index 0aad700..7d3d603 100644 (file)
@@ -138,7 +138,11 @@ API int aul_launch_init(
 
 API int aul_launch_fini()
 {
-       g_source_destroy(src);
+       if (src) {
+               g_source_destroy(src);
+               src = NULL;
+       }
+
        return AUL_R_OK;
 }