Commit 53b92957 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

don't crash if gimp_display_shell_filter_new() returns NULL. Fixes bug

2007-11-12  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell.c (gimp_display_shell_new): don't
	crash if gimp_display_shell_filter_new() returns NULL.
	Fixes bug #495863.


svn path=/trunk/; revision=24128
parent b9c181bf
2007-11-12 Michael Natterer <mitch@gimp.org>
* app/display/gimpdisplayshell.c (gimp_display_shell_new): don't
crash if gimp_display_shell_filter_new() returns NULL.
Fixes bug #495863.
2007-11-11 Kevin Cozens <kcozens@cvs.gnome.org>
* plug-ins/script-fu/scripts/script-fu-compat.init: Return a list
......
......@@ -1117,8 +1117,11 @@ gimp_display_shell_new (GimpDisplay *display,
filter = gimp_display_shell_filter_new (shell,
gimp->config->color_management);
gimp_display_shell_filter_set (shell, filter);
g_object_unref (filter);
if (filter)
{
gimp_display_shell_filter_set (shell, filter);
g_object_unref (filter);
}
gimp_display_shell_connect (shell);
......
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