From 0dcc0373e1aba2ef6be5f1c8b000fb59ffd3b874 Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Tue, 7 Jan 2014 00:14:35 +0900 Subject: [PATCH] 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. --- src/lib/elm_priv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1