seoz pushed a commit to branch master.
commit 8ea180d7b4b8ad2f15de7c72b6e274112934a525
Author: Daniel Juyung Seo <[email protected]>
Date: Wed May 29 20:15:12 2013 +0900
elc_popup.c: ELM_SAFE_FREE adoption for popup.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as
recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
---
src/lib/elc_popup.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/lib/elc_popup.c b/src/lib/elc_popup.c
index 1d94b81..df75639 100644
--- a/src/lib/elc_popup.c
+++ b/src/lib/elc_popup.c
@@ -532,9 +532,7 @@ _button_remove(Evas_Object *obj,
evas_object_event_callback_del
(sd->buttons[pos]->btn, EVAS_CALLBACK_DEL, _on_button_del);
- free(sd->buttons[pos]);
-
- sd->buttons[pos] = NULL;
+ ELM_SAFE_FREE(sd->buttons[pos], free);
sd->button_count -= 1;
if (!sd->no_shift)
--
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1