desktop_location can be NULL, check before unrefing

2009-03-12  Alexander Larsson  <alexl@redhat.com>

        * libnautilus-private/nautilus-file-operations.c:
        (copy_job_done):
	desktop_location can be NULL, check before unrefing


svn path=/trunk/; revision=15094
This commit is contained in:
Alexander Larsson 2009-03-12 19:03:18 +00:00 committed by Alexander Larsson
parent 1a9d9b98af
commit c272140881
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2009-03-12 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-file-operations.c:
(copy_job_done):
desktop_location can be NULL, check before unrefing
2009-03-12 Alexander Larsson <alexl@redhat.com>
Bug 550250 nautilus crashed with SIGSEGV in g_type_check_instance_cast()

View file

@ -4302,7 +4302,9 @@ copy_job_done (gpointer user_data)
if (job->destination) {
g_object_unref (job->destination);
}
g_object_unref (job->desktop_location);
if (job->desktop_location) {
g_object_unref (job->desktop_location);
}
g_hash_table_unref (job->debuting_files);
g_free (job->icon_positions);