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.
This commit is contained in:
Daniel Juyung Seo 2014-01-07 00:14:35 +09:00
parent d58b4401e8
commit ef6f264e75
1 changed files with 1 additions and 1 deletions

View File

@ -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;