jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=32fedb1e6d00a2a1ad9136cc30dac19f731abfcc

commit 32fedb1e6d00a2a1ad9136cc30dac19f731abfcc
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Mon Feb 15 18:19:58 2016 +0900

    eina: eina_array_free() now silently ignores NULL
    
    This is a follow-up patch after 56a4535ada71af1d22611e861ada.
    Also, remove now invalid documentation.
---
 src/lib/eina/eina_array.c | 1 -
 src/lib/eina/eina_array.h | 5 ++---
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/lib/eina/eina_array.c b/src/lib/eina/eina_array.c
index f500273..99891ad 100644
--- a/src/lib/eina/eina_array.c
+++ b/src/lib/eina/eina_array.c
@@ -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);
 }
diff --git a/src/lib/eina/eina_array.h b/src/lib/eina/eina_array.h
index 07234cd..f4e363a 100644
--- a/src/lib/eina/eina_array.h
+++ b/src/lib/eina/eina_array.h
@@ -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.

-- 


Reply via email to