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:
Darin Adler 2000-06-08 02:05:52 +00:00
parent db67541e50
commit 5f76b1ecfe
5 changed files with 25 additions and 7 deletions

View file

@ -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.

View file

@ -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");

View file

@ -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;

View file

@ -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");

View file

@ -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;