package ui

import "../core"

dispose_job_manager :: proc(m: ^Job_Manager) {
	delete(m.jobs)
	m.jobs = nil
	m.next_id = 1
}

dispose_controller :: proc(c: ^App_Controller) {
	dispose_job_manager(&c.jobs)
	core.dispose_state(&c.state)
}

dispose_controller_owned :: proc(c: ^App_Controller) {
	dispose_job_manager(&c.jobs)
	core.dispose_state_owned(&c.state)
}
