[glib] Revert "xdgmime: plug a small leak"



commit d68609f9fd22e0e498f13fc7340075022f94ed48
Author: Dan Winship <danw gnome org>
Date:   Mon Sep 3 10:06:13 2012 -0400

    Revert "xdgmime: plug a small leak"
    
    This reverts commit 4e7031f073db2df7297feab35c9d353b0b3977d8.
    
    The string actually does get freed somewhere else, at least in some
    cases. Can be looked at again later if this reintroduces a leak.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=683270

 gio/xdgmime/xdgmime.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/gio/xdgmime/xdgmime.c b/gio/xdgmime/xdgmime.c
index ee79da7..846be39 100644
--- a/gio/xdgmime/xdgmime.c
+++ b/gio/xdgmime/xdgmime.c
@@ -156,7 +156,6 @@ xdg_mime_init_from_directory (const char *directory)
           _caches[n_caches + 1] = NULL;
 	  n_caches++;
 
-          free (file_name);
 	  return FALSE;
 	}
     }



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