From: <enl...@li...> - 2004-02-05 21:32:14
|
Enlightenment CVS committal Author : mej Project : eterm Module : libast Dir : eterm/libast/test Modified Files: test.c Log Message: Thu Feb 5 16:31:43 2004 Michael Jennings (mej) Plugged a few leaks and cleaned up one uninitialized parameter problem. =================================================================== RCS file: /cvsroot/enlightenment/eterm/libast/test/test.c,v retrieving revision 1.38 retrieving revision 1.39 diff -u -3 -r1.38 -r1.39 --- test.c 4 Feb 2004 22:23:01 -0000 1.38 +++ test.c 5 Feb 2004 21:29:38 -0000 1.39 @@ -21,7 +21,7 @@ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -static const char cvs_ident[] = "$Id: test.c,v 1.38 2004/02/04 22:23:01 mej Exp $"; +static const char cvs_ident[] = "$Id: test.c,v 1.39 2004/02/05 21:29:38 mej Exp $"; #if defined(HAVE_CONFIG_H) && (HAVE_CONFIG_H != 0) # include <config.h> @@ -1177,6 +1177,7 @@ TEST_FAIL_IF(j != 13); TEST_FAIL_IF(SPIF_ITERATOR_HAS_NEXT(it)); TEST_FAIL_IF(!SPIF_OBJ_ISNULL(SPIF_ITERATOR_NEXT(it))); + SPIF_ITERATOR_DEL(it); TEST_PASS(); TEST_BEGIN("SPIF_LIST_REMOVE() macro"); @@ -1293,6 +1294,7 @@ spif_str_init_from_ptr(s, "5"); TEST_FAIL_IF(!SPIF_CMP_IS_EQUAL(SPIF_OBJ_COMP(list_array[0], s))); spif_str_del(s); + SPIF_DEALLOC(list_array); TEST_PASS(); /*SPIF_SHOW(testlist, stdout);*/ @@ -1397,6 +1399,7 @@ TEST_FAIL_IF(j != 6); TEST_FAIL_IF(SPIF_ITERATOR_HAS_NEXT(it)); TEST_FAIL_IF(!SPIF_OBJ_ISNULL(SPIF_ITERATOR_NEXT(it))); + SPIF_ITERATOR_DEL(it); TEST_PASS(); TEST_BEGIN("SPIF_VECTOR_REMOVE() macro"); @@ -1429,6 +1432,7 @@ spif_str_init_from_ptr(s, "5"); TEST_FAIL_IF(!SPIF_CMP_IS_EQUAL(SPIF_OBJ_COMP(vector_array[4], s))); spif_str_del(s); + SPIF_DEALLOC(vector_array); TEST_PASS(); /*SPIF_SHOW(testvector, stdout);*/ |