Vala generates invalid cleanup code for arrays of GLib.Value
@jamesh
Submitted by James Henstridge Link to original bug (#695821)
Description
The following Vala program compiled with 0.18.1 will crash:
public static int main (string[] args) {
GLib.Value value_array[1];
value_array[0].init(typeof(int));
return 0;
}
The array is represented as an array of GValue structs in C, but the _vala_array_destroy() call performed to release the array at the end of the function call treats it as an array of pointers to GValue structs.
I haven't tried the 0.19.0 release, but didn't see anything in the change log that sounded relevant.
Version: 0.18.x
Edited by Rico Tzschichholz