summaryrefslogtreecommitdiff
path: root/src/lib/elc_fileselector.c
diff options
context:
space:
mode:
authorRyuan Choi <ryuan.choi@gmail.com>2013-06-25 06:07:26 +0900
committerRyuan Choi <ryuan.choi@gmail.com>2013-06-25 06:08:18 +0900
commit3d2ae6d25ddc9d0af42c063b689c0c19d9f1b525 (patch)
treecc57c0ff3300445defe6e31a6810c482f02220f0 /src/lib/elc_fileselector.c
parent472e94b2815ff2bdbb17687ca35eb4f85ff40913 (diff)
downloadelementary-3d2ae6d25ddc9d0af42c063b689c0c19d9f1b525.tar.gz
fileselector: Fix possible leak of _buttons_ok_cancel_set
When called _buttons_ok_cancel_set(true) two times, buttons are created without release.
Diffstat (limited to 'src/lib/elc_fileselector.c')
-rw-r--r--src/lib/elc_fileselector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elc_fileselector.c b/src/lib/elc_fileselector.c
index c7742187c..3b7880e06 100644
--- a/src/lib/elc_fileselector.c
+++ b/src/lib/elc_fileselector.c
@@ -1087,7 +1087,7 @@ _buttons_ok_cancel_set(Eo *obj, void *_pd, va_list *list)
Elm_Fileselector_Smart_Data *sd = _pd;
- if (visible)
+ if (visible && (!sd->ok_button))
{
// cancel btn
bt = elm_button_add(obj);