Commit eff6fbe7 authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson

Bug 538888 – crash in Home Folder: I tried to open a direct...

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

	Bug 538888 – crash in Home Folder: I tried to open a direct...

	* libnautilus-private/nautilus-thumbnails.c:
	(get_pixbuf_from_data):
	Don't crash when gdk-pixbuf returns an error but doesn't
	set the GError properly.



svn path=/trunk/; revision=15091
parent c0346537
2009-03-12 Alexander Larsson <alexl@redhat.com>
Bug 538888 – crash in Home Folder: I tried to open a direct...
* libnautilus-private/nautilus-thumbnails.c:
(get_pixbuf_from_data):
Don't crash when gdk-pixbuf returns an error but doesn't
set the GError properly.
2009-03-11 Alexander Larsson <alexl@redhat.com>
* configure.in:
......
......@@ -460,7 +460,12 @@ get_pixbuf_from_data (const unsigned char *buffer,
if (!gdk_pixbuf_loader_close (loader, &error) ||
/* Seems we have to check this even if it returned TRUE (#403255) */
error != NULL) {
g_message ("Failed to close thumbnail pixbuf loader for %s: %s", path, error->message);
/* In some cases, we don't get an error even with FALSE returns (#538888) */
if (error != NULL) {
g_message ("Failed to close thumbnail pixbuf loader for %s: %s", path, error->message);
} else {
g_message ("Failed to close thumbnail pixbuf loader for %s", path);
}
g_object_unref (G_OBJECT (loader));
g_error_free (error);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment