[gnumeric] wbcg: plug leaks.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] wbcg: plug leaks.
- Date: Thu, 17 Feb 2011 16:18:48 +0000 (UTC)
commit c7148798cc9dea6379a246cdc10f71004c89a1d4
Author: Morten Welinder <terra gnome org>
Date: Thu Feb 17 11:18:31 2011 -0500
wbcg: plug leaks.
ChangeLog | 2 ++
NEWS | 1 +
src/wbc-gtk.c | 9 +++++++++
3 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 26b1c44..32f20da 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2011-02-17 Morten Welinder <terra gnome org>
+ * src/wbc-gtk.c (wbc_gtk_finalize): Remove custum UIs.
+
* src/stf.c (stf_shutdown): Unregister stf_csv too.
2011-02-16 Morten Welinder <terra gnome org>
diff --git a/NEWS b/NEWS
index d758598..ac810cf 100644
--- a/NEWS
+++ b/NEWS
@@ -11,6 +11,7 @@ Jean:
Morten:
* Import wide sc files. [#641581]
* Fix problem with single-cell names and 'r'-type arguments. [#613273]
+ * Plug a few leaks.
--------------------------------------------------------------------------
Gnumeric 1.10.13
diff --git a/src/wbc-gtk.c b/src/wbc-gtk.c
index e9f256c..9d61513 100644
--- a/src/wbc-gtk.c
+++ b/src/wbc-gtk.c
@@ -5263,6 +5263,15 @@ wbc_gtk_finalize (GObject *obj)
gtk_ui_manager_remove_ui (wbcg->ui, wbcg->templates.merge_id);
UNREF_OBJ (templates.actions);
+ {
+ GSList *l, *uis = go_hash_keys (wbcg->custom_uis);
+ for (l = uis; l; l = l->next) {
+ GnmAppExtraUI *extra_ui = l->data;
+ cb_remove_custom_ui (NULL, extra_ui, wbcg);
+ }
+ g_slist_free (uis);
+ }
+
g_hash_table_destroy (wbcg->custom_uis);
UNREF_OBJ (zoom_vaction);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]