From 8e9e81709c29b53728aafa2e0b43ea813ab723f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberts=20Muktup=C4=81vels?= Date: Thu, 17 Sep 2015 15:12:17 +0300 Subject: [PATCH] cairo-xlib-surface: set image to NULL after destroying it Otherwise we might call cairo_surface_destroy on already destroyed surface if we hit specific failure path. https://bugs.freedesktop.org/show_bug.cgi?id=91967 --- src/cairo-xlib-surface.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cairo-xlib-surface.c b/src/cairo-xlib-surface.c index 029a542..f1974c9 100644 --- a/src/cairo-xlib-surface.c +++ b/src/cairo-xlib-surface.c @@ -807,6 +807,7 @@ _get_image_surface (cairo_xlib_surface_t *surface, } cairo_surface_destroy (&image->base); + image = NULL; } } -- 2.5.0