mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-08-25 02:36:07 +00:00
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:
parent
778efbaa54
commit
d4ec79bdf2
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue