Commit 6e0740a7 authored by Christophe Courtaut's avatar Christophe Courtaut

Fixed bug in media Library

parent d2aced57
......@@ -68,7 +68,9 @@ bool LibraryWidget::removeMedia(ListViewMediaItem* item)
this->m_ui.listWidgetVideo->removeItemWidget( item );
break;
}
return m_medias->removeOne( item );
bool ret = m_medias->removeOne( item );
delete item;
return ret;
}
return false;
}
......
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