[gnumeric] fix entry of incomplete functions



commit 6c40f1d86524cad687595010e20629f863c2659d
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Thu Jun 24 12:53:20 2010 -0600

    fix entry of incomplete functions
    
    2010-06-24  Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* src/wbc-gtk-edit.c (wbcg_edit_finish): don't free memory until we
    	  are done with it.

 ChangeLog          |    5 +++++
 src/wbc-gtk-edit.c |    6 +-----
 2 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 15c09f2..bf0f84b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-06-24  Andreas J. Guelzow <aguelzow pyrshep ca>
+
+	* src/wbc-gtk-edit.c (wbcg_edit_finish): don't free memory until we
+	  are done with it.
+
 2010-06-24  Morten Welinder  <terra gnome org>
 
 	* src/gnm-pane.c (gnm_pane_key_mode_sheet): Untangle old
diff --git a/src/wbc-gtk-edit.c b/src/wbc-gtk-edit.c
index 7d2a0ad..ec78ed6 100644
--- a/src/wbc-gtk-edit.c
+++ b/src/wbc-gtk-edit.c
@@ -332,11 +332,6 @@ wbcg_edit_finish (WBCGtk *wbcg, WBCEditResult result,
 		}
 
 		range_fragment_free (selection);
-		g_free (free_txt);
-
-
-	
-
 
 		/* We need to rebuild the original info first. */
 
@@ -363,6 +358,7 @@ wbcg_edit_finish (WBCGtk *wbcg, WBCEditResult result,
 				cmd_area_set_text (wbc, sv, txt,
 						   result == WBC_EDIT_ACCEPT_ARRAY);
 		}
+		g_free (free_txt);
 	} else {
 		if (sv == wb_control_cur_sheet_view (wbc)) {
 			/* Redraw the cell contents in case there was a span */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]