[cairo-commit] 2 commits - src/cairo-quartz-image-surface.c

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jan 19 12:11:35 UTC 2021


 src/cairo-quartz-image-surface.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f5d32c071f25604f60b38ba5fdc91ce226f9efc9
Merge: fa1b02d7e ba2afdcac
Author: Heiko Lewin <hlewin at gmx.de>
Date:   Tue Jan 19 12:11:33 2021 +0000

    Merge branch 'fix_surface_ref' into 'master'
    
    Add missing call to cairo_surface_reference
    
    See merge request cairo/cairo!102

commit ba2afdcacf42eccf263b39efc77b85f3a65dcd74
Author: Heiko Lewin <hlewin at gmx.de>
Date:   Tue Jan 19 12:11:33 2021 +0000

    cairo-quartz-image-surface.c: Add missing call to cairo_surface_reference (Thanks to Fred Bca)

diff --git a/src/cairo-quartz-image-surface.c b/src/cairo-quartz-image-surface.c
index ad23621af..adc722923 100644
--- a/src/cairo-quartz-image-surface.c
+++ b/src/cairo-quartz-image-surface.c
@@ -369,7 +369,7 @@ cairo_quartz_image_surface_create (cairo_surface_t *surface)
     qisurf->height = height;
 
     qisurf->image = image;
-    qisurf->imageSurface = image_surface;
+    qisurf->imageSurface = (cairo_image_surface_t*) cairo_surface_reference(surface);
 
     return &qisurf->base;
 }


More information about the cairo-commit mailing list