[gnome-shell] app-system: Fix memory leak



commit 09fe31179aaf0ddf3e4786b61f8011431a5e72d5
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sun Nov 3 16:18:39 2013 -0500

    app-system: Fix memory leak
    
    The shell app takes a ref on the info.

 src/shell-app-system.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/shell-app-system.c b/src/shell-app-system.c
index 70bcb86..4762909 100644
--- a/src/shell-app-system.c
+++ b/src/shell-app-system.c
@@ -142,6 +142,7 @@ shell_app_system_lookup_app (ShellAppSystem   *self,
 
   app = _shell_app_new (info);
   g_hash_table_insert (priv->id_to_app, (char *) shell_app_get_id (app), app);
+  g_object_unref (info);
   return app;
 }
 


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