Like I already wrote, it has nothing to do with Qt. Qt is a C++ framework, it doesn't do anything special with respect to memory management.
So yes, since the OP wrote that the memory was not freed after the application ended then he needs to elaborate on that.