All allocated resources should be freed  on transition GST_STATE_CHANGE_READY_TO_NULL