From 1eb4b8d9e154d123f8dba0b16a121c9eefbe4a92 Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Tue, 8 Oct 2013 00:08:19 +0900 Subject: [PATCH] elm_cnp.c: Did a subtle code cleanup. savedtypes.imgfile should not be null logically or this function should have been returned in advance. --- legacy/elementary/src/lib/elm_cnp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/legacy/elementary/src/lib/elm_cnp.c b/legacy/elementary/src/lib/elm_cnp.c index 97696a4..5d02dcc 100644 --- a/legacy/elementary/src/lib/elm_cnp.c +++ b/legacy/elementary/src/lib/elm_cnp.c @@ -2775,7 +2775,7 @@ _wl_dropable_data_handle(Wl_Cnp_Selection *sel, char *data) sdata.data = entrytag; drop->dropcb(drop->cbdata, drop->obj, &sdata); ecore_wl_dnd_drag_end(ecore_wl_input_get()); - if (savedtypes.imgfile) free(savedtypes.imgfile); + free(savedtypes.imgfile); savedtypes.imgfile = NULL; } else if (drop->types & ELM_SEL_FORMAT_IMAGE) @@ -2784,7 +2784,7 @@ _wl_dropable_data_handle(Wl_Cnp_Selection *sel, char *data) sdata.data = (char *)savedtypes.imgfile; drop->dropcb(drop->cbdata, drop->obj, &sdata); ecore_wl_dnd_drag_end(ecore_wl_input_get()); - if (savedtypes.imgfile) free(savedtypes.imgfile); + free(savedtypes.imgfile); savedtypes.imgfile = NULL; } } -- 2.7.4