[gnome-session] shell-extensions: Fix memory leak



commit 8282c0eda41f6453f7533aadd188ab132b19c0b9
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Mar 9 13:48:42 2012 -0500

    shell-extensions: Fix memory leak
    
    https://bugzilla.gnome.org/show_bug.cgi?id=671693

 gnome-session/gsm-shell-extensions.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnome-session/gsm-shell-extensions.c b/gnome-session/gsm-shell-extensions.c
index 282985a..933645d 100644
--- a/gnome-session/gsm-shell-extensions.c
+++ b/gnome-session/gsm-shell-extensions.c
@@ -194,7 +194,7 @@ gsm_shell_extensions_scan_dir (GsmShellExtensions *self,
 
       metadata_root = json_node_get_object (json_parser_get_root (metadata_parser));
 
-      metadata_uuid = g_strdup (json_object_get_string_member (metadata_root, "uuid"));
+      metadata_uuid = json_object_get_string_member (metadata_root, "uuid");
       if (!g_str_equal (metadata_uuid, extension->uuid))
         {
           g_warning ("Extension with dirname '%s' does not match metadata's UUID of '%s'. Skipping.",



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