projects
/
profile
/
tv
/
apps
/
native
/
air_mediahub.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ctxpopup: delete objects when failed to create
[profile/tv/apps/native/air_mediahub.git]
/
src
/
util
/
ctxpopup.c
diff --git
a/src/util/ctxpopup.c
b/src/util/ctxpopup.c
index
34ded20
..
c70f808
100644
(file)
--- 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;
}