[gnome-power-manager] trivial: fix a crasher in the self test code
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-power-manager] trivial: fix a crasher in the self test code
- Date: Mon, 7 Sep 2009 12:35:17 +0000 (UTC)
commit f120a024aeb68438097b496ea2e7c59cfd81bc45
Author: Richard Hughes <richard hughsie com>
Date: Mon Sep 7 13:16:39 2009 +0100
trivial: fix a crasher in the self test code
src/gpm-session.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gpm-session.c b/src/gpm-session.c
index b0ab64f..c656cfc 100644
--- a/src/gpm-session.c
+++ b/src/gpm-session.c
@@ -479,7 +479,8 @@ gpm_session_finalize (GObject *object)
g_object_unref (session->priv->proxy);
g_object_unref (session->priv->proxy_presence);
- g_object_unref (session->priv->proxy_client_private);
+ if (session->priv->proxy_client_private != NULL)
+ g_object_unref (session->priv->proxy_client_private);
g_object_unref (session->priv->proxy_prop);
G_OBJECT_CLASS (gpm_session_parent_class)->finalize (object);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]