Commit 2b350826 authored by Thomas Cataldo's avatar Thomas Cataldo Committed by Alexander Larsson
Browse files

Some memory leak fixes

2004-08-12  Thomas Cataldo  <thomas.cataldo@aliacom.fr>

	Some memory leak fixes

	* libnautilus-private/nautilus-icon-factory.c:
	(nautilus_icon_factory_instance_init), (create_normal_cache_icon):
	* libnautilus-private/nautilus-module.c: (load_module_dir):
parent f1d6fd50
2004-08-12 Thomas Cataldo <thomas.cataldo@aliacom.fr>
Some memory leak fixes
* libnautilus-private/nautilus-icon-factory.c:
(nautilus_icon_factory_instance_init), (create_normal_cache_icon):
* libnautilus-private/nautilus-module.c: (load_module_dir):
2004-08-12 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-file-operations-progress.c:
......
......@@ -374,6 +374,8 @@ nautilus_icon_factory_instance_init (NautilusIconFactory *factory)
factory->fallback_icon = cache_icon_new (pixbuf, NULL, 1.0, 1.0);
g_object_unref(pixbuf);
factory->image_mime_types = g_hash_table_new (g_str_hash, g_str_equal);
for (i = 0; i < G_N_ELEMENTS (types); i++) {
g_hash_table_insert (factory->image_mime_types,
......@@ -1187,7 +1189,7 @@ create_normal_cache_icon (const char *icon,
* before the extension */
if (stat (icon, &statbuf) == 0 &&
S_ISREG (statbuf.st_mode)) {
filename = g_strdup (icon);
filename = icon;
mtime = statbuf.st_mtime;
}
} else {
......
......@@ -197,6 +197,7 @@ load_module_dir (const char *dirname)
name,
NULL);
nautilus_module_load_file (filename);
g_free (filename);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment