[gnumeric] fixed leaks in previews_free
- From: Jean Bréfort <jbrefort src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnumeric] fixed leaks in previews_free
- Date: Sat, 12 Sep 2009 08:23:23 +0000 (UTC)
commit f5f3c38cc2732112ecb6f2b55f4c9822407d8e48
Author: Jean Brefort <jean brefort normalesup org>
Date: Sat Sep 12 10:22:49 2009 +0200
fixed leaks in previews_free
src/dialogs/ChangeLog | 4 ++++
src/dialogs/dialog-autoformat.c | 4 ++--
2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/dialogs/ChangeLog b/src/dialogs/ChangeLog
index 9e60840..a84948e 100644
--- a/src/dialogs/ChangeLog
+++ b/src/dialogs/ChangeLog
@@ -1,3 +1,7 @@
+2009-09-12 Jean Brefort <jean brefort normalesup org>
+
+ * dialog-autoformat.c (previews_free): fixed leaks.
+
2009-09-11 Morten Welinder <terra gnome org>
* dialog-autoformat.c (previews_free): Adapt to new canvas.
diff --git a/src/dialogs/dialog-autoformat.c b/src/dialogs/dialog-autoformat.c
index e0e3f24..89e55b6 100644
--- a/src/dialogs/dialog-autoformat.c
+++ b/src/dialogs/dialog-autoformat.c
@@ -274,14 +274,14 @@ previews_free (AutoFormatState *state)
return;
if (state->selrect) {
- goc_group_remove_child (state->selrect->parent, state->selrect);
+ g_object_unref (state->selrect);
state->selrect = NULL;
}
for (i = 0; i < NUM_PREVIEWS; i++) {
GocItem *item = state->grid[i];
if (item) {
- goc_group_remove_child (item->parent, item);
+ g_object_unref (state->grid[i]);
state->grid[i] = NULL;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]