[gnome-shell/wip/gtk-notification: 1/22] shell-global: Fix a few memory leaks



commit 454885950907527efcd22ed3821e046eb2dd18e5
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sun Oct 13 18:41:03 2013 -0400

    shell-global: Fix a few memory leaks
    
    https://bugzilla.gnome.org/show_bug.cgi?id=710104

 src/shell-global.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/shell-global.c b/src/shell-global.c
index 4d91a2b..92da970 100644
--- a/src/shell-global.c
+++ b/src/shell-global.c
@@ -1779,6 +1779,8 @@ shell_global_set_runtime_state (ShellGlobal  *global,
                                NULL, FALSE, G_FILE_CREATE_REPLACE_DESTINATION,
                                NULL, NULL, NULL);
     }
+
+  g_object_unref (path);
 }
 
 /**
@@ -1822,5 +1824,8 @@ shell_global_get_runtime_state (ShellGlobal  *global,
       g_mapped_file_unref (mfile);
     }
 
+  g_object_unref (path);
+  g_free (pathstr);
+
   return res;
 }


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