Added releasing the objects in dctor