r8662 paulblokus - /branches/paulblokus/treeview/desktop/tree.c

netsurf at semichrome.net netsurf at semichrome.net
Tue Jul 21 23:43:01 BST 2009


Author: paulblokus
Date: Tue Jul 21 17:43:01 2009
New Revision: 8662

URL: http://source.netsurf-browser.org?rev=8662&view=rev
Log:
text is not freed if it is accepted

Modified:
    branches/paulblokus/treeview/desktop/tree.c

Modified: branches/paulblokus/treeview/desktop/tree.c
URL: http://source.netsurf-browser.org/branches/paulblokus/treeview/desktop/tree.c?rev=8662&r1=8661&r2=8662&view=diff
==============================================================================
--- branches/paulblokus/treeview/desktop/tree.c (original)
+++ branches/paulblokus/treeview/desktop/tree.c Tue Jul 21 17:43:01 2009
@@ -2410,12 +2410,14 @@
 				element->parent->callback_data,
 				&msg_data);
 		
-		free(text);
-		text = NULL;
 		switch (response) {
 			case NODE_CALLBACK_REJECT:
+				free(text);
+				text = NULL;
 				break;
 			case NODE_CALLBACK_CONTINUE:
+				free(text);
+				text = NULL;
 				return;
 			case NODE_CALLBACK_HANDLED:
 			case NODE_CALLBACK_NOT_HANDLED:




More information about the netsurf-commits mailing list