[evolution/wip/webkit-composer: 266/372] Bug #702438 - [webkit-composer] Crash on composer close in GSlice
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit-composer: 266/372] Bug #702438 - [webkit-composer] Crash on composer close in GSlice
- Date: Thu, 6 Feb 2014 11:45:52 +0000 (UTC)
commit 3e060056a220fa1954f0e3cb5191271ccae6795d
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]