Don't unref NULL, which can happen if !do_load_location

2008-10-17  Alexander Larsson  <alexl@redhat.com>

	* src/nautilus-window-manage-views.c
	(nautilus_window_slot_open_location_full):
	Don't unref NULL, which can happen if !do_load_location



svn path=/trunk/; revision=14732
This commit is contained in:
Alexander Larsson 2008-10-17 10:24:53 +00:00 committed by Alexander Larsson
parent 778efbaa54
commit d4ec79bdf2
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2008-10-17 Alexander Larsson <alexl@redhat.com>
* src/nautilus-window-manage-views.c
(nautilus_window_slot_open_location_full):
Don't unref NULL, which can happen if !do_load_location
2008-10-17 Alexander Larsson <alexl@redhat.com>
* src/nautilus-spatial-window.c:

View file

@ -616,7 +616,9 @@ nautilus_window_slot_open_location_full (NautilusWindowSlot *slot,
if ((!do_load_location) ||
(target_window == window && target_slot == slot &&
old_location && g_file_equal (old_location, location))) {
g_object_unref (old_location);
if (old_location) {
g_object_unref (old_location);
}
return;
}