[evolution/webkit-composer: 201/210] Bug #702438 - [webkit-composer] Crash on composer close in GSlice
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/webkit-composer: 201/210] Bug #702438 - [webkit-composer] Crash on composer close in GSlice
- Date: Mon, 8 Jul 2013 01:02:43 +0000 (UTC)
commit 113c2681f5051762018eecaa95c2decd9a0dca43
Author: Tomas Popela <tpopela redhat com>
Date: Fri Jun 21 12:14:40 2013 +0200
Bug #702438 - [webkit-composer] Crash on composer close in GSlice
We have to use gdk_rgba_free() instead of gdk_color_free() when freeing palette.
e-util/e-color-combo.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/e-util/e-color-combo.c b/e-util/e-color-combo.c
index 93ec2f8..f2f46e4 100644
--- a/e-util/e-color-combo.c
+++ b/e-util/e-color-combo.c
@@ -539,7 +539,7 @@ color_combo_dispose (GObject *object)
priv->default_color = NULL;
}
- g_list_free_full (priv->palette, (GDestroyNotify) gdk_color_free);
+ g_list_free_full (priv->palette, (GDestroyNotify) gdk_rgba_free);
priv->palette = NULL;
/* Chain up to parent's dispose() method. */
@@ -954,7 +954,7 @@ e_color_combo_set_palette (EColorCombo *combo,
colors_per_line = (count % 10 == 0) ? 10 : 9;
colors = g_malloc_n (count, sizeof (GdkRGBA));
- g_list_free_full (combo->priv->palette, (GDestroyNotify) gdk_color_free);
+ g_list_free_full (combo->priv->palette, (GDestroyNotify) gdk_rgba_free);
ii = 0;
combo->priv->palette = NULL;
for (iter = palette; iter; iter = g_list_next (iter)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]