summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2013-10-08 00:08:19 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2013-10-08 00:08:21 +0900
commitea7087c3ad6d24341159602dc95829daa0fa5557 (patch)
treea5cdf6d8143b14bcbf0345d6d89ca7224f838d07
parent8ade252f622e98c897287be219dae61ca863261f (diff)
elm_cnp.c: Did a subtle code cleanup.
savedtypes.imgfile should not be null logically or this function should have been returned in advance.
-rw-r--r--src/lib/elm_cnp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elm_cnp.c b/src/lib/elm_cnp.c
index 97696a40e..5d02dcce0 100644
--- a/src/lib/elm_cnp.c
+++ b/src/lib/elm_cnp.c
@@ -2775,7 +2775,7 @@ _wl_dropable_data_handle(Wl_Cnp_Selection *sel, char *data)
2775 sdata.data = entrytag; 2775 sdata.data = entrytag;
2776 drop->dropcb(drop->cbdata, drop->obj, &sdata); 2776 drop->dropcb(drop->cbdata, drop->obj, &sdata);
2777 ecore_wl_dnd_drag_end(ecore_wl_input_get()); 2777 ecore_wl_dnd_drag_end(ecore_wl_input_get());
2778 if (savedtypes.imgfile) free(savedtypes.imgfile); 2778 free(savedtypes.imgfile);
2779 savedtypes.imgfile = NULL; 2779 savedtypes.imgfile = NULL;
2780 } 2780 }
2781 else if (drop->types & ELM_SEL_FORMAT_IMAGE) 2781 else if (drop->types & ELM_SEL_FORMAT_IMAGE)
@@ -2784,7 +2784,7 @@ _wl_dropable_data_handle(Wl_Cnp_Selection *sel, char *data)
2784 sdata.data = (char *)savedtypes.imgfile; 2784 sdata.data = (char *)savedtypes.imgfile;
2785 drop->dropcb(drop->cbdata, drop->obj, &sdata); 2785 drop->dropcb(drop->cbdata, drop->obj, &sdata);
2786 ecore_wl_dnd_drag_end(ecore_wl_input_get()); 2786 ecore_wl_dnd_drag_end(ecore_wl_input_get());
2787 if (savedtypes.imgfile) free(savedtypes.imgfile); 2787 free(savedtypes.imgfile);
2788 savedtypes.imgfile = NULL; 2788 savedtypes.imgfile = NULL;
2789 } 2789 }
2790} 2790}