Commit e87ee787 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

video controller: Unregister from media library callbacks when destroying

parent c46c407d
......@@ -138,5 +138,8 @@ void
video_controller_destroy(video_controller *ctrl)
{
eina_list_free(ctrl->p_content);
media_library* p_ml = (media_library*)application_get_media_library(ctrl->p_app);
media_library_unregister_on_change(p_ml, &video_controller_content_changed_cb, ctrl);
media_library_unregister_item_updated(p_ml, &video_controller_file_updated_cb, ctrl);
free(ctrl);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment