summaryrefslogtreecommitdiff
path: root/vapi/glib-2.0.vapi
diff options
context:
space:
mode:
authorCorentin Noël <corentin@elementary.io>2018-11-16 14:55:00 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2018-11-16 18:46:45 +0100
commit168b4efda30dd9bca16a6ea101b49f0e4ac36ac2 (patch)
treece09247c64db80f17f136c213a749e428d2324e9 /vapi/glib-2.0.vapi
parent0875f0f80f88755bfdf08870deebb3022156f084 (diff)
downloadvala-168b4efda30dd9bca16a6ea101b49f0e4ac36ac2.tar.gz
glib-2.0: Avoid double-free in GLib.Array if clear_func is set
Diffstat (limited to 'vapi/glib-2.0.vapi')
-rw-r--r--vapi/glib-2.0.vapi6
1 files changed, 3 insertions, 3 deletions
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 39a7a361c..fee5c1d7f 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -5295,14 +5295,14 @@ namespace GLib {
[CCode (cname = "vala_g_array_remove_index")]
public G remove_index (uint index) {
assert (length > index);
- G g = data[index];
+ G g = (owned) data[index];
_remove_index (index);
return g;
}
[CCode (cname = "vala_g_array_remove_index_fast")]
public G remove_index_fast (uint index) {
assert (length > index);
- G g = data[index];
+ G g = (owned) data[index];
_remove_index_fast (index);
return g;
}
@@ -5311,7 +5311,7 @@ namespace GLib {
assert (this.length >= index + length);
G[] ga = new G[length];
for (uint i = 0; i < length; i++) {
- ga[i] = data[i + index];
+ ga[i] = (owned) data[i + index];
}
_remove_range (index, length);
return ga;