summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHwankyu Jhun <h.jhun@samsung.com>2016-11-30 19:43:46 +0900
committerHwankyu Jhun <h.jhun@samsung.com>2016-12-02 08:27:07 +0900
commit16a017942e0738983c5d897c2332829549838f3e (patch)
treea686a5e8734b6450cf6ff0f00eaa46a089eafc18
parent55deb3bccae2f3d41e8b6e3038b63d046f60edbb (diff)
downloadapplication-16a017942e0738983c5d897c2332829549838f3e.tar.gz
application-16a017942e0738983c5d897c2332829549838f3e.tar.bz2
application-16a017942e0738983c5d897c2332829549838f3e.zip
Change-Id: I27d3ff1c875189d17fae7cc167daf0ef005abd84 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rw-r--r--src/app_resource.c29
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;
}