Avoid free of random memory if desktop file reading failed.

2008-02-18  Alexander Larsson  <alexl@redhat.com>

        * libnautilus-private/nautilus-directory-async.c:
        (link_info_nautilus_link_read_callback):
	Avoid free of random memory if desktop file reading
	failed.


svn path=/trunk/; revision=13766
This commit is contained in:
Alexander Larsson 2008-02-18 11:35:34 +00:00 committed by Alexander Larsson
parent 5cd967156e
commit 826976a191
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2008-02-18 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-directory-async.c:
(link_info_nautilus_link_read_callback):
Avoid free of random memory if desktop file reading
failed.
2008-02-15 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-dnd.c:

View file

@ -3601,7 +3601,9 @@ link_info_nautilus_link_read_callback (GObject *source_object,
link_info_got_data (state->directory, state->file, result, file_size, file_contents);
g_free (file_contents);
if (result) {
g_free (file_contents);
}
link_info_read_state_free (state);