shithub: choc

Download patch

ref: 47287b653271d94cb0fa49833db621a048df2ca1
parent: 1df732ab78cb0ff08104e67dedf57cbd1d176f28
author: Simon Howard <fraggle@gmail.com>
date: Sat May 20 17:37:34 EDT 2006

Add missing free() call.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 496

--- a/textscreen/txt_button.c
+++ b/textscreen/txt_button.c
@@ -44,6 +44,7 @@
     txt_button_t *button = (txt_button_t *) widget;
 
     free(button->label);
+    free(button);
 }
 
 static int TXT_ButtonKeyPress(txt_widget_t *widget, int key)