diff options
author | Hwankyu Jhun <h.jhun@samsung.com> | 2016-11-30 19:43:46 +0900 |
---|---|---|
committer | Hwankyu Jhun <h.jhun@samsung.com> | 2016-12-02 08:27:07 +0900 |
commit | 16a017942e0738983c5d897c2332829549838f3e (patch) | |
tree | a686a5e8734b6450cf6ff0f00eaa46a089eafc18 | |
parent | 55deb3bccae2f3d41e8b6e3038b63d046f60edbb (diff) | |
download | application-16a017942e0738983c5d897c2332829549838f3e.tar.gz application-16a017942e0738983c5d897c2332829549838f3e.tar.bz2 application-16a017942e0738983c5d897c2332829549838f3e.zip |
Reset pre-initialized object to null pointersubmit/tizen_3.0/20161202.134357submit/tizen_3.0/20161202.062936accepted/tizen/3.0/wearable/20161205.000354accepted/tizen/3.0/tv/20161205.000342accepted/tizen/3.0/mobile/20161205.000309accepted/tizen/3.0/ivi/20161205.000413accepted/tizen/3.0/common/20161205.092039
Change-Id: I27d3ff1c875189d17fae7cc167daf0ef005abd84
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rw-r--r-- | src/app_resource.c | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/src/app_resource.c b/src/app_resource.c index 374472b..ff36edc 100644 --- a/src/app_resource.c +++ b/src/app_resource.c @@ -30,20 +30,41 @@ void *app_get_preinitialized_window(const char *win_name) { - if (elm_win_precreated_object_get() == NULL) + void *win; + + win = elm_win_precreated_object_get(); + if (win == NULL) return NULL; appcore_set_preinit_window_name(win_name); - return elm_win_precreated_object_get(); + elm_win_precreated_object_set(NULL); + + return win; } void *app_get_preinitialized_background(void) { - return elm_bg_precreated_object_get(); + void *background; + + background = elm_bg_precreated_object_get(); + if (background == NULL) + return NULL; + + elm_bg_precreated_object_set(NULL); + + return background; } void *app_get_preinitialized_conformant(void) { - return elm_conformant_precreated_object_get(); + void *conformant; + + conformant = elm_conformant_precreated_object_get(); + if (conformant == NULL) + return NULL; + + elm_conformant_precreated_object_set(NULL); + + return conformant; } |