[gnumeric] solver: plug leak.



commit fc54b21f41f79f4d6acd605d16363d959090ccd5
Author: Morten Welinder <terra gnome org>
Date:   Mon Nov 2 14:02:03 2009 -0500

    solver: plug leak.

 src/dialogs/dialog-solver.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/dialogs/dialog-solver.c b/src/dialogs/dialog-solver.c
index 50dee76..2371c82 100644
--- a/src/dialogs/dialog-solver.c
+++ b/src/dialogs/dialog-solver.c
@@ -779,10 +779,10 @@ cb_dialog_solve_clicked (G_GNUC_UNUSED GtkWidget *button,
 			 err ? err->message : _("Unknown error."));
 
 out:
-	if (target_range != NULL)
-		value_release (target_range);
-	if (input_range != NULL)
-		value_release (input_range);
+	value_release (target_range);
+	value_release (input_range);
+	if (err)
+		g_error_free (err);
 }
 
 



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