Fix a crash problem.
authorJaeyun Jeong <jyjeong@samsung.com>
Fri, 7 Sep 2012 06:01:54 +0000 (15:01 +0900)
committerJaeyun Jeong <jyjeong@samsung.com>
Fri, 7 Sep 2012 06:01:54 +0000 (15:01 +0900)
Change-Id: Ic4835052680dc8b051afeae9180ccc586880e198

main/message.c

index 9846eec..b8802d7 100755 (executable)
@@ -861,6 +861,7 @@ static void app_service(service_h service, void *data)
                if (g_strcmp0(cvalue, "Emulator") == 0) {
                        D_MSG("Not support in Emulator !!");
                        g_free(cvalue);
+                       cvalue = NULL;
 
                        service_h reply;
 
@@ -874,11 +875,14 @@ static void app_service(service_h service, void *data)
 
                        /* Exit application because it is not supported in Emulator. */
                        elm_exit();
+                       return;
                }
        }
 
-       if (cvalue)
+       if (cvalue) {
                g_free(cvalue);
+               cvalue = NULL;
+       }
 
        ug_resume();