]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
zlib: Make next_in and next_out buffers in Stream be unowned
authorRobert Ancell <robert.ancell@canonical.com>
Sat, 11 Jun 2011 09:52:43 +0000 (19:52 +1000)
committerLuca Bruno <lucabru@src.gnome.org>
Sun, 12 Jun 2011 08:01:33 +0000 (10:01 +0200)
Fixes bug 652344.

vapi/zlib.vapi

index 44d2cc862ac481954d14294441fc7bbd41ae3682..8545f035b0295dc0a4df42f91ced3daa9b014f31 100644 (file)
@@ -91,12 +91,12 @@ namespace ZLib {
        [CCode (cname = "z_stream", destroy_function = "deflateEnd")]
        public struct Stream {
                [CCode (array_length_cname = "avail_in", array_length_type = "ulong")]
-               public uint8[] next_in;
+               public unowned uint8[] next_in;
                public uint avail_in;
                public ulong total_in;
 
                [CCode (array_length_cname = "avail_out", array_length_type = "ulong")]
-               public uint8[] next_out;
+               public unowned uint8[] next_out;
                public uint avail_out;
                public ulong total_out;