From: Jean-Baptiste M. <jb...@kd...> - 2015-08-29 10:49:00
|
Git commit 73586dd89a800209120f7630a82267a6fe5f22fa by Jean-Baptiste Mardelle. Committed on 29/08/2015 at 10:41. Pushed by mardelle into branch 'master'. Fix crash on loading project introduced in last commit M +2 -1 src/mltcontroller/bincontroller.cpp http://commits.kde.org/kdenlive/73586dd89a800209120f7630a82267a6fe5f22fa diff --git a/src/mltcontroller/bincontroller.cpp b/src/mltcontroller/bincontroller.cpp index 2f27c6d..66cea74 100644 --- a/src/mltcontroller/bincontroller.cpp +++ b/src/mltcontroller/bincontroller.cpp @@ -94,7 +94,7 @@ void BinController::initializeBin(Mlt::Playlist playlist, ProfileInfo info) m_binPlaylist = new Mlt::Playlist(playlist); m_binPlaylist->set("id", kPlaylistTrackId); for (int i = 0; i < m_binPlaylist->count(); i++) { - QScopedPointer<Mlt::Producer> producer(m_binPlaylist->get_clip(i)); + Mlt::Producer *producer = m_binPlaylist->get_clip(i); if (producer->is_blank() || !producer->is_valid()) continue; QString id = producer->parent().get("id"); if (id.contains("_")) { @@ -109,6 +109,7 @@ void BinController::initializeBin(Mlt::Playlist playlist, ProfileInfo info) ClipController *controller = new ClipController(this); m_clipList.insert(mainId, controller); } + delete producer; } else { if (m_clipList.contains(id)) { |