Commit 4e453ac5 authored by Clement CHAVANCE's avatar Clement CHAVANCE

deleting a listViewController doesn't crash anymore

parent 5918bc92
......@@ -46,10 +46,8 @@ ListViewController::ListViewController( StackViewController* nav ) : m_nav( nav
ListViewController::~ListViewController()
{
delete m_title;
delete m_scrollArea;
delete m_layout;
delete m_container;
delete m_title;
}
// ViewController method implementation
......
......@@ -111,8 +111,6 @@ void MediaListViewController::showClipList( const QUuid& uuid )
Library::getInstance()->media( uuid )->clips()->size() == 0 )
return ;
m_lastUuidClipListAsked = uuid;
if ( m_clipsListView != 0 )
delete m_clipsListView;
m_clipsListView = new ClipListViewController( m_nav, uuid );
m_clipsListView->addClipsFromMedia( Library::getInstance()->media( uuid ) );
connect( m_clipsListView, SIGNAL( clipSelected( const QUuid& ) ),
......@@ -150,6 +148,7 @@ void MediaListViewController::restoreContext()
}
}
}
delete m_clipsListView;
}
void
......
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