Commit 2eb0078a authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Free the Video Controller

parent 42f3b66e
......@@ -133,3 +133,10 @@ video_controller_create(application* p_app, view_sys* p_view )
media_library_register_item_updated(p_ml, video_controller_file_updated_cb, ctrl);
return ctrl;
}
void
video_controller_destroy(video_controller *ctrl)
{
eina_list_free(ctrl->p_content);
free(ctrl);
}
......@@ -33,4 +33,7 @@
video_controller*
video_controller_create( application* p_app, view_sys* p_view );
void
video_controller_destroy(video_controller *);
#endif /* VIDEO_CONTROLLER_H_ */
......@@ -284,7 +284,7 @@ void
destroy_video_view(interface_view *view)
{
elm_genlist_item_class_free(view->p_view_sys->p_default_item_class);
//video_controller_destroy
video_controller_destroy(view->p_view_sys->p_controller);
free(view->p_view_sys);
free(view);
}
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