app: Handle calls to gimp_view_render_to_surface() while GIMP exists
This commit is contained in:
@ -925,6 +925,13 @@ gimp_view_render_to_surface (TempBuf *temp_buf,
|
||||
g_return_if_fail (temp_buf != NULL);
|
||||
g_return_if_fail (surface != NULL);
|
||||
|
||||
/* In rare cases we can get here while GIMP is exiting, handle that
|
||||
* by checking for availability of the buffers
|
||||
*/
|
||||
g_return_if_fail (gimp_render_check_buf != NULL);
|
||||
g_return_if_fail (gimp_render_empty_buf != NULL);
|
||||
g_return_if_fail (gimp_render_white_buf != NULL);
|
||||
|
||||
dest = cairo_image_surface_get_data (surface);
|
||||
dest_stride = cairo_image_surface_get_stride (surface);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user