Fix memory management in generic methods
Fix memory management in generic methods

GNOME/vala,kamanashisroy/aroop,flobrosch/vala-fixes,severinh/vala,flobrosch/vala-fixes,themiwi/vala,kamanashisroy/aroop,Jc2k/vala,tjol/vala-tjol,lovebug356/vala,GNOME/vala,frida/vala,Distrotech/vala,spidermonkdust/vala,themiwi/vala,severinh/vala,rvu95/vala,kamanashisroy/aroop,tjol/vala-tjol,Distrotech/vala,frida/vala,severinh/vala,jessevdk/vala,playya/vala,Jc2k/vala,xdave/pvala,playya/vala,rvu95/vala,phako/vala,themiwi/vala,GNOME/vala,playya/vala,phako/vala,lovebug356/vala,jessevdk/vala,frida/vala,spidermonkdust/vala,frida/vala,GNOME/vala,jessevdk/vala,rvu95/vala,frida/vala,spidermonkdust/vala,tjol/vala-tjol,flobrosch/vala-fixes,Distrotech/vala