Free frames after assertions.
This commit is contained in:
		
							parent
							
								
									9821a5265a
								
							
						
					
					
						commit
						8445bd1a5e
					
				| @ -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; | ||||
| } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user