Fixed memory leak.
Fixed uninitialised arrays.
Small bugfix for GDL