Free frames after assertions.

This commit is contained in:
Murilo Pereira 2011-02-12 16:30:33 -02:00
parent 9821a5265a
commit 8445bd1a5e

View File

@ -12,15 +12,15 @@ void test_initialize_frame() {
assert(frame->start_y == 0); assert(frame->start_y == 0);
assert(frame->start_x == 0); assert(frame->start_x == 0);
delete_frame(frame);
return; return;
} }
void test_set_frame() { void test_set_frame() {
struct frame *frame; struct frame *frame;
int start_y, start_x; int start_y = 5;
int start_x = 10;
start_y = 2;
start_x = 2;
allocate_frame(&frame); allocate_frame(&frame);
initialize_frame(frame); initialize_frame(frame);
@ -29,6 +29,8 @@ void test_set_frame() {
assert(frame->start_y == start_y); assert(frame->start_y == start_y);
assert(frame->start_x == start_x); assert(frame->start_x == start_x);
delete_frame(frame);
return; return;
} }