[TSAM-10811] FC occur after clear all and tap on on music app 69/103669/1
authorGeunsun, Lee <gs86.lee@samsung.com>
Fri, 9 Dec 2016 05:48:40 +0000 (14:48 +0900)
committerGeunsun, Lee <gs86.lee@samsung.com>
Fri, 9 Dec 2016 05:48:40 +0000 (14:48 +0900)
Change-Id: Ida5d909ff6e883aec2d314c5074e96d59633921e

src/apps_view.c

index da0f23b..1565fe3 100755 (executable)
@@ -827,12 +827,12 @@ static void __apps_view_icon_clicked_cb(void *data, Evas_Object *obj, const char
                        app_context_h context = NULL;
                        if (app_manager_get_app_context(item->app_id, &context) == APP_MANAGER_ERROR_NONE &&
                                        app_manager_resume_app(context) == APP_MANAGER_ERROR_NONE) {
-                               if (context) app_context_destroy(context);
+                               app_context_destroy(context);
                                goto __ret;
                        }
 
                        LOGE("[FAILED][app_manager_resume_app]");
-                       app_context_destroy(context);
+                       if (context) app_context_destroy(context);
                }
        }