summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorMinkyu Kang <mk7.kang@samsung.com>2015-09-17 16:44:09 +0900
committerMinkyu Kang <mk7.kang@samsung.com>2015-09-17 16:44:09 +0900
commitfd58c1c3e5a976a0d862b8ebd243d3505d33d19a (patch)
tree7607bef2bc126d6cdf4de51182773deb40bbc53b /src/util
parent7f759d58f846900767de7f07f3a2032c2bb8dd5d (diff)
downloadair_mediahub-fd58c1c3e5a976a0d862b8ebd243d3505d33d19a.tar.gz
air_mediahub-fd58c1c3e5a976a0d862b8ebd243d3505d33d19a.tar.bz2
air_mediahub-fd58c1c3e5a976a0d862b8ebd243d3505d33d19a.zip
ctxpopup: delete objects when failed to create
Change-Id: I826110d2c8dd3f3f725b094c27b024009d104cf7 Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/ctxpopup.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/ctxpopup.c b/src/util/ctxpopup.c
index 34ded20..c70f808 100644
--- a/src/util/ctxpopup.c
+++ b/src/util/ctxpopup.c
@@ -148,6 +148,8 @@ struct ctxpopup *ctxpopup_create(Evas_Object *base, const char *ctxpopup_style,
box = util_add_box(ctxpopup, EINA_FALSE);
if (!box) {
_ERR("failed to add box");
+ evas_object_del(ctxpopup);
+ free(m);
return false;
}
@@ -158,6 +160,7 @@ struct ctxpopup *ctxpopup_create(Evas_Object *base, const char *ctxpopup_style,
if (!btn) {
_ERR("failed to add button");
evas_object_del(ctxpopup);
+ free(m);
return false;
}