]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
cairo: Fix cairo_image_surface_get_data binding
authorMichal Hruby <michal.mhr@gmail.com>
Sun, 16 Aug 2009 11:35:35 +0000 (13:35 +0200)
committerJürg Billeter <j@bitron.ch>
Sun, 16 Aug 2009 12:44:11 +0000 (14:44 +0200)
ImageSurface.get_data() method returns unowned data.

vapi/cairo.vapi

index 40a2d9bd3e1327e3403f1fb653328ff915e65ef0..d43c852849db083b803a72f9b2d329f01fbdd531 100644 (file)
@@ -460,7 +460,7 @@ namespace Cairo {
                [CCode (cname = "cairo_image_surface_create_for_data")]
                public ImageSurface.for_data ([CCode (array_length = false)] uchar[] data, Format format, int width, int height, int stride);
                [CCode (array_length = false)]
-               public uchar[] get_data ();
+               public weak uchar[] get_data ();
                public Format get_format ();
                public int get_width ();
                public int get_height ();