[gnome-software] shell overview: Fix a possible double free in dispose
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] shell overview: Fix a possible double free in dispose
- Date: Fri, 26 Jun 2015 20:40:11 +0000 (UTC)
commit 131ee2ed036df16cf98a7a1bf2dc0123f0b65611
Author: Kalev Lember <klember redhat com>
Date: Fri Jun 26 21:32:57 2015 +0200
shell overview: Fix a possible double free in dispose
src/gs-shell-overview.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-shell-overview.c b/src/gs-shell-overview.c
index 2e1088a..37c8908 100644
--- a/src/gs-shell-overview.c
+++ b/src/gs-shell-overview.c
@@ -546,7 +546,7 @@ gs_shell_overview_dispose (GObject *object)
g_clear_object (&priv->builder);
g_clear_object (&priv->plugin_loader);
g_clear_object (&priv->cancellable);
- g_free (priv->category_of_day);
+ g_clear_pointer (&priv->category_of_day, g_free);
G_OBJECT_CLASS (gs_shell_overview_parent_class)->dispose (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]