[devhelp] sidebar: handle finalize with NULL GCompletion
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp] sidebar: handle finalize with NULL GCompletion
- Date: Fri, 30 Sep 2016 18:03:24 +0000 (UTC)
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]