]> git.ipfire.org Git - thirdparty/vala.git/commit
codegen: Do not treat void* to not leak memory anymore
authorLuca Bruno <lucabru@src.gnome.org>
Mon, 26 Sep 2011 20:01:56 +0000 (22:01 +0200)
committerLuca Bruno <lucabru@src.gnome.org>
Mon, 26 Sep 2011 20:10:54 +0000 (22:10 +0200)
commit9c67e8be75dbaa83806a7978736e6c679f08f5fa
tree37eeba12335e6b83dc3ca4b35d0cb0649e6bcae4
parentdae84aa88a91ddb9ef9e2ecb2ac4ab23d1c23991
codegen: Do not treat void* to not leak memory anymore

It wasn't possible to let void* variables take the ownership of
an expression as it's always been freed afterwards.
Simple generics can be used to enforce ownership instead of void*.

Fixes bug 659975.
codegen/valaccodebasemodule.vala
tests/Makefile.am
tests/basic-types/bug659975.vala [new file with mode: 0644]