Commit 53bd37b1 authored by Ludovic Fauvet's avatar Ludovic Fauvet

Fix memleaks

parent 3d922ed3
......@@ -245,7 +245,7 @@ destroy_about_view(interface_view *view)
Evas_Object *win = intf_get_window(p_sys->p_intf);
evas_object_smart_callback_del(win, "wm,rotation,changed", rotation_cb);
evas_object_del(view->view);
free(p_sys->p_anim);
free(p_sys);
free(view);
......
......@@ -308,6 +308,7 @@ void
destroy_audio_view(interface_view *view)
{
view_sys* p_sys = view->p_view_sys;
evas_object_del(view->view);
free(p_sys);
free(view);
}
......@@ -389,6 +389,7 @@ create_directory_view(interface *intf, Evas_Object *parent)
void
destroy_directory_view(interface_view *view)
{
evas_object_del(view->view);
free(view->p_view_sys);
free(view);
}
......@@ -429,6 +429,7 @@ create_settings_view(interface *intf, Evas_Object *parent)
void
destroy_settings_view(interface_view *view)
{
evas_object_del(view->view);
free(view->p_view_sys);
free(view);
}
......
......@@ -399,6 +399,7 @@ destroy_stream_view(interface_view *view)
{
view_sys* p_sys = view->p_view_sys;
sqlite3_close(p_sys->db);
evas_object_del(view->view);
free(p_sys);
free(view);
}
......
......@@ -138,6 +138,7 @@ destroy_video_view(interface_view *view)
{
list_view* p_list_view = view->p_view_sys->p_list;
p_list_view->pf_del(p_list_view->p_sys);
evas_object_del(view->view);
free(p_list_view);
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