gproject: One more memory leak fix

Thanks to Pavel Roschin