[devhelp] sidebar: handle finalize with NULL GCompletion



commit 6dbf7d7f5ae16295326e2e9352387d8dbda75408
Author: Christian Hergert <chergert redhat com>
Date:   Thu Sep 15 12:23:14 2016 -0700

    sidebar: handle finalize with NULL GCompletion

 src/dh-sidebar.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/dh-sidebar.c b/src/dh-sidebar.c
index 749ef2e..f75677a 100644
--- a/src/dh-sidebar.c
+++ b/src/dh-sidebar.c
@@ -491,7 +491,7 @@ dh_sidebar_finalize (GObject *object)
 {
         DhSidebarPrivate *priv = dh_sidebar_get_instance_private (DH_SIDEBAR (object));
 
-        g_completion_free (priv->completion);
+        g_clear_pointer (&priv->completion, g_completion_free);
 
         G_OBJECT_CLASS (dh_sidebar_parent_class)->finalize (object);
 }


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