raster pushed a commit to branch master.

commit 30dd56ed087c82a24bc27b6f5dffdb0e69cab849
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Sat Mar 9 23:05:32 2013 +0900

    only del cnp drop if removed from list.
---
 src/lib/elm_cnp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/elm_cnp.c b/src/lib/elm_cnp.c
index be80853..e2e8d04 100644
--- a/src/lib/elm_cnp.c
+++ b/src/lib/elm_cnp.c
@@ -1789,8 +1789,8 @@ _x11_elm_drop_target_del(Evas_Object *obj)
 
    evas_object_event_callback_del(obj, EVAS_CALLBACK_FREE,
                                   (Evas_Object_Event_Cb)elm_drop_target_del);
-   free(drop);
-
+   if (del) free(del);
+   
    /* TODO BUG: we should handle dnd-aware per window, not just the last that 
reelased it */
 
    /* If still drops there: All fine.. continue */

-- 

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev

Reply via email to