mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-09-19 15:51:40 +00:00
Fixed another storage leak, we forgot to call through to the parent
* libnautilus-extensions/nautilus-file.c: (destroy): Fixed another storage leak, we forgot to call through to the parent destroy. (nautilus_self_check_file): Fixed a leak in the test. * libnautilus-extensions/nautilus-string-list.c: (nautilus_string_list_new_from_tokens): Fixed a leak by calling g_strfreev instead of g_free.
This commit is contained in:
parent
db67541e50
commit
5f76b1ecfe
12
ChangeLog
12
ChangeLog
|
@ -1,3 +1,14 @@
|
|||
2000-06-07 Darin Adler <darin@eazel.com>
|
||||
|
||||
* libnautilus-extensions/nautilus-file.c: (destroy):
|
||||
Fixed another storage leak, we forgot to call through
|
||||
to the parent destroy.
|
||||
(nautilus_self_check_file): Fixed a leak in the test.
|
||||
|
||||
* libnautilus-extensions/nautilus-string-list.c:
|
||||
(nautilus_string_list_new_from_tokens): Fixed a leak
|
||||
by calling g_strfreev instead of g_free.
|
||||
|
||||
2000-06-07 John Sullivan <sullivan@eazel.com>
|
||||
|
||||
Fixed bug 1299 (view-and-location switching fails if short list empty)
|
||||
|
@ -28,7 +39,6 @@ Fixed bug 1299 (view-and-location switching fails if short list empty)
|
|||
* components/services/time/nautilus-view/Makefile.am:
|
||||
Added include path; wasn building correctly for everyone
|
||||
|
||||
|
||||
2000-06-07 Darin Adler <darin@eazel.com>
|
||||
|
||||
Leak-checking-related fixes.
|
||||
|
|
|
@ -231,6 +231,8 @@ destroy (GtkObject *object)
|
|||
nautilus_directory_unref (file->details->directory);
|
||||
|
||||
g_free (file->details);
|
||||
|
||||
NAUTILUS_CALL_PARENT_CLASS (GTK_OBJECT_CLASS, destroy, (object));
|
||||
}
|
||||
|
||||
NautilusFile *
|
||||
|
@ -2387,9 +2389,11 @@ nautilus_self_check_file (void)
|
|||
NAUTILUS_CHECK_STRING_RESULT (nautilus_file_get_name (file_1), "home");
|
||||
|
||||
NAUTILUS_CHECK_BOOLEAN_RESULT (nautilus_file_get ("file:///home/") == file_1, TRUE);
|
||||
NAUTILUS_CHECK_BOOLEAN_RESULT (nautilus_file_get ("file:///home") == file_1, TRUE);
|
||||
|
||||
nautilus_file_unref (file_1);
|
||||
|
||||
NAUTILUS_CHECK_BOOLEAN_RESULT (nautilus_file_get ("file:///home") == file_1, TRUE);
|
||||
nautilus_file_unref (file_1);
|
||||
|
||||
nautilus_file_unref (file_1);
|
||||
|
||||
file_1 = nautilus_file_get ("file:///home");
|
||||
|
|
|
@ -131,7 +131,7 @@ nautilus_string_list_new_from_tokens (const char *string,
|
|||
nautilus_string_list_insert (string_list, string_array[i]);
|
||||
}
|
||||
|
||||
g_free (string_array);
|
||||
g_strfreev (string_array);
|
||||
}
|
||||
|
||||
return string_list;
|
||||
|
|
|
@ -231,6 +231,8 @@ destroy (GtkObject *object)
|
|||
nautilus_directory_unref (file->details->directory);
|
||||
|
||||
g_free (file->details);
|
||||
|
||||
NAUTILUS_CALL_PARENT_CLASS (GTK_OBJECT_CLASS, destroy, (object));
|
||||
}
|
||||
|
||||
NautilusFile *
|
||||
|
@ -2387,9 +2389,11 @@ nautilus_self_check_file (void)
|
|||
NAUTILUS_CHECK_STRING_RESULT (nautilus_file_get_name (file_1), "home");
|
||||
|
||||
NAUTILUS_CHECK_BOOLEAN_RESULT (nautilus_file_get ("file:///home/") == file_1, TRUE);
|
||||
NAUTILUS_CHECK_BOOLEAN_RESULT (nautilus_file_get ("file:///home") == file_1, TRUE);
|
||||
|
||||
nautilus_file_unref (file_1);
|
||||
|
||||
NAUTILUS_CHECK_BOOLEAN_RESULT (nautilus_file_get ("file:///home") == file_1, TRUE);
|
||||
nautilus_file_unref (file_1);
|
||||
|
||||
nautilus_file_unref (file_1);
|
||||
|
||||
file_1 = nautilus_file_get ("file:///home");
|
||||
|
|
|
@ -131,7 +131,7 @@ nautilus_string_list_new_from_tokens (const char *string,
|
|||
nautilus_string_list_insert (string_list, string_array[i]);
|
||||
}
|
||||
|
||||
g_free (string_array);
|
||||
g_strfreev (string_array);
|
||||
}
|
||||
|
||||
return string_list;
|
||||
|
|
Loading…
Reference in a new issue