[gnumeric] Leak fix.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Leak fix.
- Date: Thu, 5 Jan 2012 20:05:34 +0000 (UTC)
commit cd9c129be28c622104bb4a19b8e24d0274b4dd36
Author: Morten Welinder <terra gnome org>
Date: Thu Jan 5 15:05:09 2012 -0500
Leak fix.
src/workbook-view.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/workbook-view.c b/src/workbook-view.c
index 5f2974a..e74c5fb 100644
--- a/src/workbook-view.c
+++ b/src/workbook-view.c
@@ -807,10 +807,11 @@ wb_view_dispose (GObject *object)
g_warning ("Unexpected left-over controls");
}
+ /* The order of these are important. Make sure not to leak the value. */
+ wb_view_auto_expr_descr (wbv, NULL);
wb_view_auto_expr_eval_pos (wbv, NULL);
wb_view_auto_expr_func (wbv, NULL);
wb_view_auto_expr_value (wbv, NULL);
- wb_view_auto_expr_descr (wbv, NULL);
wb_view_detach_from_workbook (wbv);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]