diff options
author | Alexander Larsson <alexl@redhat.com> | 2006-11-13 11:51:09 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2006-11-13 11:51:09 +0000 |
commit | 60fc1617b6d4a6a72fb0771abb3e6ec36408d9b1 (patch) | |
tree | 50aad71fa0729e86bbf08e005a8c0e9cc809dda2 /libnautilus-private | |
parent | 5c838750f43b258de81684088e50a16bcda0ce4d (diff) | |
download | nautilus-60fc1617b6d4a6a72fb0771abb3e6ec36408d9b1.tar.gz |
Ref the NautilusDirectory during call_ready_callbacks_at_idle. Fixes
2006-11-13 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-directory-async.c:
Ref the NautilusDirectory during call_ready_callbacks_at_idle.
Fixes #372471
Diffstat (limited to 'libnautilus-private')
-rw-r--r-- | libnautilus-private/nautilus-directory-async.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libnautilus-private/nautilus-directory-async.c b/libnautilus-private/nautilus-directory-async.c index 6aa768dc0..eca4f0edc 100644 --- a/libnautilus-private/nautilus-directory-async.c +++ b/libnautilus-private/nautilus-directory-async.c @@ -1858,6 +1858,8 @@ call_ready_callbacks_at_idle (gpointer callback_data) directory = NAUTILUS_DIRECTORY (callback_data); directory->details->call_ready_idle_id = 0; + nautilus_directory_ref (directory); + callback = NULL; while (1) { /* Check if any callbacks are non-active and call them if they are. */ @@ -1886,6 +1888,8 @@ call_ready_callbacks_at_idle (gpointer callback_data) update_metadata_monitors (directory); nautilus_directory_async_state_changed (directory); + + nautilus_directory_unref (directory); return FALSE; } |