Memory gets freed when you quit after you select a card
This commit is contained in:
		
							parent
							
								
									14cd5e61bb
								
							
						
					
					
						commit
						22ec7de16c
					
				| @ -66,6 +66,7 @@ static void handle_card_movement(struct cursor *cursor) { | |||||||
|   for (;;) { |   for (;;) { | ||||||
|     if ((key = getch()) == 'q' || key == 'Q') { |     if ((key = getch()) == 'q' || key == 'Q') { | ||||||
|       endwin(); |       endwin(); | ||||||
|  |       game_end(); | ||||||
|       exit(0); |       exit(0); | ||||||
|     } |     } | ||||||
|     if (term_size_ok()) { |     if (term_size_ok()) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user