Hi, This works with Vala 0.10.4: $ cat test.vala void main(){ X.Display disp = new X.Display(); stdout.printf("%s\n", disp.display_string()); } $ valac --pkg=x11 test.vala && ./test :0.0 $ This doesn't work with Vala 0.10.4: $ cat test.vala void main(){ X.Display disp = new X.Display(); stdout.printf("%s\n", disp.display_string()); stdout.printf("%s\n", disp.display_string()); } $ valac --pkg=x11 test.vala && ./test :0.0 *** glibc detected *** ./test: double free or corruption (fasttop): 0x08509958 *** [...] The attached patch fixes the issue for me. Please include it in master if you have no objections. Best regards Alexander Kurtz
Attachment:
fix-double-free.patch
Description: Text Data
Attachment:
signature.asc
Description: This is a digitally signed message part