mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-09-13 04:51:15 +00:00
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):
This commit is contained in:
parent
f1d6fd5003
commit
2b350826b6
|
@ -1,3 +1,11 @@
|
|||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue