[gnome-software] Don't leak a GsApp



commit a64455c1a3251b2b08b13806527483ce5994a97d
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Aug 29 19:02:59 2013 -0400

    Don't leak a GsApp
    
    We should unref the GsApp that is shown in the details page
    on shutdown.

 src/gs-shell-details.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index 122d109..7214c0a 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -331,6 +331,8 @@ gs_shell_details_finalize (GObject *object)
        g_object_unref (priv->builder);
        g_object_unref (priv->plugin_loader);
        g_object_unref (priv->cancellable);
+        if (priv->app)
+                g_object_unref (priv->app);
 
        G_OBJECT_CLASS (gs_shell_details_parent_class)->finalize (object);
 }


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