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;
|
if (!array) return;
|
||||||
eina_array_flush(array);
|
eina_array_flush(array);
|
||||||
|
|
||||||
EINA_SAFETY_ON_NULL_RETURN(array);
|
|
||||||
EINA_MAGIC_CHECK_ARRAY(array);
|
EINA_MAGIC_CHECK_ARRAY(array);
|
||||||
MAGIC_FREE(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
|
* This function frees @p array. It calls first eina_array_flush() then
|
||||||
* free the memory of the pointer. It does not free the memory
|
* 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
|
* 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
|
* #EINA_ARRAY_ITER_NEXT.
|
||||||
* of @p array.
|
|
||||||
*/
|
*/
|
||||||
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.
|
* @brief Set the step of an array.
|
||||||
|
|
Loading…
Reference in New Issue