Rectangle needs the list module for the pool_new() function. Patch also adds
a check for initialization error on the unit test.
--
André Dieb Martins
Embedded Systems and Pervasive Computing Lab (Embedded)
Electrical Engineering Department (DEE)
Center of Electrical Engineering and Informatics (CEEI)
Federal University of Campina Grande (UFCG)
Blog: http://genuinepulse.blogspot.com/
Index: src/lib/eina_rectangle.c
===================================================================
--- src/lib/eina_rectangle.c (revision 41459)
+++ src/lib/eina_rectangle.c (working copy)
@@ -242,6 +242,12 @@
goto mempool_init_error;
}
+ if (!eina_list_init())
+ {
+ EINA_ERROR_PERR("Could not initialize eina list module.\n");
+ goto list_init_error;
+ }
+
#ifdef EINA_DEFAULT_MEMPOOL
choice = "pass_through";
#else
@@ -267,6 +273,8 @@
return _eina_rectangle_init_count;
init_error:
+ eina_list_shutdown();
+ list_init_error:
eina_mempool_shutdown();
mempool_init_error:
eina_error_shutdown();
@@ -281,6 +289,8 @@
if (_eina_rectangle_init_count) return _eina_rectangle_init_count;
+ eina_list_shutdown();
+
eina_mempool_del(_eina_rectangle_alloc_mp);
eina_mempool_del(_eina_rectangle_mp);
Index: src/tests/eina_test_rectangle.c
===================================================================
--- src/tests/eina_test_rectangle.c (revision 41459)
+++ src/tests/eina_test_rectangle.c (working copy)
@@ -34,7 +34,7 @@
int w;
int h;
- eina_rectangle_init();
+ fail_if(!eina_rectangle_init());
pool = eina_rectangle_pool_new(256, 256);
fail_if(pool == NULL);
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel