forked from enlightenment/efl
eina: eina_array_free() now silently ignores NULL
This is a follow-up patch after 56a4535ada
.
Also, remove now invalid documentation.
This commit is contained in:
parent
5b2580b62e
commit
32fedb1e6d
|
@ -296,7 +296,6 @@ eina_array_free(Eina_Array *array)
|
|||
if (!array) return;
|
||||
eina_array_flush(array);
|
||||
|
||||
EINA_SAFETY_ON_NULL_RETURN(array);
|
||||
EINA_MAGIC_CHECK_ARRAY(array);
|
||||
MAGIC_FREE(array);
|
||||
}
|
||||
|
|
|
@ -264,10 +264,9 @@ EAPI Eina_Array *eina_array_new(unsigned int step) EINA_WARN_UNUSED_RESULT EINA_
|
|||
* This function frees @p array. It calls first eina_array_flush() then
|
||||
* free the memory of the pointer. It does not free the memory
|
||||
* allocated for the elements of @p array. To free them, walk the array with
|
||||
* #EINA_ARRAY_ITER_NEXT. For performance reasons, there is no check
|
||||
* of @p array.
|
||||
* #EINA_ARRAY_ITER_NEXT.
|
||||
*/
|
||||
EAPI void eina_array_free(Eina_Array *array) EINA_ARG_NONNULL(1);
|
||||
EAPI void eina_array_free(Eina_Array *array);
|
||||
|
||||
/**
|
||||
* @brief Set the step of an array.
|
||||
|
|
Loading…
Reference in New Issue