From: Daniel Juyung Seo Date: Mon, 6 Jan 2014 15:14:35 +0000 (+0900) Subject: elm_priv.h: Removed null check from ELM_SAFE_FREE because all efl X-Git-Tag: v1.9.0-alpha1~292 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0dcc0373e1aba2ef6be5f1c8b000fb59ffd3b874;p=platform%2Fupstream%2Felementary.git elm_priv.h: Removed null check from ELM_SAFE_FREE because all efl free/del func + free func get null as valid parameter. Now ELM_SAFE_FREE is less useful than before. It reduced 5 lines to 1 but now it reduces 2 lines to 1. --- diff --git a/src/lib/elm_priv.h b/src/lib/elm_priv.h index a8757c3d7..5b1c49425 100644 --- a/src/lib/elm_priv.h +++ b/src/lib/elm_priv.h @@ -160,7 +160,7 @@ extern const char *_elm_engines[]; #undef MAX #define MAX(x, y) (((x) > (y)) ? (x) : (y)) -#define ELM_SAFE_FREE(_h, _fn) do { if (_h) { _fn((void*)_h); _h = NULL; } } while (0) +#define ELM_SAFE_FREE(_h, _fn) do { _fn((void*)_h); _h = NULL; } while (0) #define ELM_PRIV_STATIC_VARIABLE_DECLARE(name, signal, type) \ static const char name[] = signal;