[gnome-settings-daemon] power: Don't try to unref a NULL pointer
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] power: Don't try to unref a NULL pointer
- Date: Fri, 9 Nov 2012 17:01:31 +0000 (UTC)
commit abf8b334eb31edf6d22b7c86a2e2628972eed26d
Author: Rui Matos <tiagomatos gmail com>
Date: Fri Nov 9 17:53:30 2012 +0100
power: Don't try to unref a NULL pointer
plugins/power/gsd-power-manager.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index 2bc36f2..26ac236 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -704,7 +704,7 @@ engine_recalculate_state_icon (GsdPowerManager *manager)
icon = engine_get_icon (manager);
if (g_icon_equal (icon, manager->priv->previous_icon)) {
- g_object_unref (icon);
+ g_clear_object (&icon);
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]