Revert "xdgmime: plug a small leak"
authorDan Winship <danw@gnome.org>
Mon, 3 Sep 2012 14:06:13 +0000 (10:06 -0400)
committerDan Winship <danw@gnome.org>
Mon, 3 Sep 2012 14:07:31 +0000 (10:07 -0400)
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

index ee79da7..846be39 100644 (file)
@@ -156,7 +156,6 @@ xdg_mime_init_from_directory (const char *directory)
           _caches[n_caches + 1] = NULL;
          n_caches++;
 
-          free (file_name);
          return FALSE;
        }
     }