From 34b3f71860a9d7830830d68366f7c0e2739d750b Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Wed, 25 Nov 1998 17:26:38 +0000 Subject: [PATCH] Miguel: could you check the uninitialized variable gc in Miguel: could you check the uninitialized variable gc in item_grid_realize()? 1998-11-24 Federico Mena Quintero * src/item-grid.c (item_grid_unrealize): Unref all the item_grid's GCs. --- ChangeLog-1999-07-09 | 4 ++++ ChangeLog-2000-02-23 | 4 ++++ OChangeLog-1999-07-09 | 4 ++++ OChangeLog-2000-02-23 | 4 ++++ src/item-grid.c | 4 ++++ 5 files changed, 20 insertions(+) diff --git a/ChangeLog-1999-07-09 b/ChangeLog-1999-07-09 index 3cdcbb16c..4a474fb86 100644 --- a/ChangeLog-1999-07-09 +++ b/ChangeLog-1999-07-09 @@ -1,3 +1,7 @@ +1998-11-24 Federico Mena Quintero + + * src/item-grid.c (item_grid_unrealize): Unref all the item_grid's GCs. + 1998-11-23 Miguel de Icaza * src/dialog-goto-cell.c (dialog_goto_cell): Set the policy on the diff --git a/ChangeLog-2000-02-23 b/ChangeLog-2000-02-23 index 3cdcbb16c..4a474fb86 100644 --- a/ChangeLog-2000-02-23 +++ b/ChangeLog-2000-02-23 @@ -1,3 +1,7 @@ +1998-11-24 Federico Mena Quintero + + * src/item-grid.c (item_grid_unrealize): Unref all the item_grid's GCs. + 1998-11-23 Miguel de Icaza * src/dialog-goto-cell.c (dialog_goto_cell): Set the policy on the diff --git a/OChangeLog-1999-07-09 b/OChangeLog-1999-07-09 index 3cdcbb16c..4a474fb86 100644 --- a/OChangeLog-1999-07-09 +++ b/OChangeLog-1999-07-09 @@ -1,3 +1,7 @@ +1998-11-24 Federico Mena Quintero + + * src/item-grid.c (item_grid_unrealize): Unref all the item_grid's GCs. + 1998-11-23 Miguel de Icaza * src/dialog-goto-cell.c (dialog_goto_cell): Set the policy on the diff --git a/OChangeLog-2000-02-23 b/OChangeLog-2000-02-23 index 3cdcbb16c..4a474fb86 100644 --- a/OChangeLog-2000-02-23 +++ b/OChangeLog-2000-02-23 @@ -1,3 +1,7 @@ +1998-11-24 Federico Mena Quintero + + * src/item-grid.c (item_grid_unrealize): Unref all the item_grid's GCs. + 1998-11-23 Miguel de Icaza * src/dialog-goto-cell.c (dialog_goto_cell): Set the policy on the diff --git a/src/item-grid.c b/src/item-grid.c index 963e2d2d0..65956d115 100644 --- a/src/item-grid.c +++ b/src/item-grid.c @@ -94,7 +94,11 @@ item_grid_unrealize (GnomeCanvasItem *item) ItemGrid *item_grid = ITEM_GRID (item); gdk_gc_unref (item_grid->grid_gc); + gdk_gc_unref (item_grid->fill_gc); + gdk_gc_unref (item_grid->gc); item_grid->grid_gc = 0; + item_grid->fill_gc = 0; + item_grid->gc = 0; if (GNOME_CANVAS_ITEM_CLASS (item_grid_parent_class)->unrealize) (*GNOME_CANVAS_ITEM_CLASS (item_grid_parent_class)->unrealize)(item); -- GitLab