From 8445bd1a5e50f4a7b20a78bdfec411d19655b360 Mon Sep 17 00:00:00 2001 From: Murilo Pereira Date: Sat, 12 Feb 2011 16:30:33 -0200 Subject: [PATCH] Free frames after assertions. --- test/frame_test.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/frame_test.c b/test/frame_test.c index 9d71cf3..5c7bb9e 100644 --- a/test/frame_test.c +++ b/test/frame_test.c @@ -12,15 +12,15 @@ void test_initialize_frame() { assert(frame->start_y == 0); assert(frame->start_x == 0); + delete_frame(frame); + return; } void test_set_frame() { struct frame *frame; - int start_y, start_x; - - start_y = 2; - start_x = 2; + int start_y = 5; + int start_x = 10; allocate_frame(&frame); initialize_frame(frame); @@ -29,6 +29,8 @@ void test_set_frame() { assert(frame->start_y == start_y); assert(frame->start_x == start_x); + delete_frame(frame); + return; }