[gnome-settings-daemon] color: Fix a potential crash when unloading the color plugin



commit 337da2fd0ffa415bb72e7ace50e96d2a77a9de3c
Author: Richard Hughes <richard hughsie com>
Date:   Thu Aug 4 18:02:55 2011 +0100

    color: Fix a potential crash when unloading the color plugin

 plugins/color/gsd-color-manager.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/color/gsd-color-manager.c b/plugins/color/gsd-color-manager.c
index f30b586..ce45791 100644
--- a/plugins/color/gsd-color-manager.c
+++ b/plugins/color/gsd-color-manager.c
@@ -2064,7 +2064,7 @@ gsd_color_manager_finalize (GObject *object)
         g_object_unref (manager->priv->profile_store);
         g_object_unref (manager->priv->dmi);
         g_hash_table_destroy (manager->priv->edid_cache);
-        if (manager->priv->x11_screen != NULL);
+        if (manager->priv->x11_screen != NULL)
                 g_object_unref (manager->priv->x11_screen);
 
         G_OBJECT_CLASS (gsd_color_manager_parent_class)->finalize (object);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]