[gnome-color-manager] Zero out GErrors after freeing. Fixes crash.
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] Zero out GErrors after freeing. Fixes crash.
- Date: Wed, 27 Jan 2010 07:06:43 +0000 (UTC)
commit 6adf45cc4acd50bdb333b63621b6e9c2bec92f43
Author: Christian Hergert <christian hergert gmail com>
Date: Tue Jan 26 19:15:23 2010 -0800
Zero out GErrors after freeing. Fixes crash.
From a8abf583ab31c38a80c8ce570efa47d2a981c6f9 Mon Sep 17 00:00:00 2001
From: Christian Hergert <chris dronelabs com>
Date: Tue, 26 Jan 2010 19:09:37 -0800
Subject: [PATCH] Zero out GErrors after freeing. Fixes crash.
src/gcm-prefs.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gcm-prefs.c b/src/gcm-prefs.c
index 60e04a9..b3cfeae 100644
--- a/src/gcm-prefs.c
+++ b/src/gcm-prefs.c
@@ -2526,6 +2526,7 @@ gcm_prefs_startup_phase1_idle_cb (gpointer user_data)
if (!ret) {
egg_warning ("failed to coldplug: %s", error->message);
g_error_free (error);
+ error = NULL;
/* do not fail */
}
@@ -2534,6 +2535,7 @@ gcm_prefs_startup_phase1_idle_cb (gpointer user_data)
if (!ret) {
egg_warning ("failed to coldplug: %s", error->message);
g_error_free (error);
+ error = NULL;
goto out;
}
@@ -2542,6 +2544,7 @@ gcm_prefs_startup_phase1_idle_cb (gpointer user_data)
if (!ret) {
egg_warning ("failed to coldplug: %s", error->message);
g_error_free (error);
+ error = NULL;
/* do not fail */
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]