Tuesday, July 19, 2016

gnome panel crashing with transparent background

Fix libcairo

--Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=91967
Signed-off-by: Uli Schlachter <psychon@znc.in>
----
 src/cairo-xlib-surface.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/cairo-xlib-surface.c b/src/cairo-xlib-surface.c
index 3f407c3..555c1fe 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;
     }
     }

@@ -1011,7 +1012,8 @@ _get_image_surface (cairo_xlib_surface_t    *surface,
     cairo_device_release (&display->base);

     if (unlikely (status)) {
-    cairo_surface_destroy (&image->base);
+    if (image)
+        cairo_surface_destroy (&image->base);
     return _cairo_surface_create_in_error (status);
     }

--


source:
https://bugs.freedesktop.org/show_bug.cgi?id=91967

No comments:

Post a Comment