Release resources after finishing change of gst state to NULL