fixed memory leak

we need to pass a parent to this object so that it gets ever deleted by something