[vlmc-devel] commit: Import: Don't crash when a media fail to load. ( Hugo Beauzee-Luyssen )

git at videolan.org git at videolan.org
Fri Apr 9 18:20:42 CEST 2010


vlmc | branch: master | Hugo Beauzee-Luyssen <beauze.h at gmail.com> | Fri Apr  9 18:20:17 2010 +0200| [a7e64161303c4d19af29b53a2bb60f8e99fadc12] | committer: Hugo Beauzee-Luyssen 

Import: Don't crash when a media fail to load.

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=a7e64161303c4d19af29b53a2bb60f8e99fadc12
---

 src/Gui/import/ImportController.cpp |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/src/Gui/import/ImportController.cpp b/src/Gui/import/ImportController.cpp
index 37184a9..f56792f 100644
--- a/src/Gui/import/ImportController.cpp
+++ b/src/Gui/import/ImportController.cpp
@@ -328,7 +328,6 @@ ImportController::failedToLoad( Media *media )
     m_ui->errorLabel->show();
     QTimer::singleShot( 3000, this, SLOT( hideErrors() ) );
     delete m_temporaryMedias->removeClip( media->baseClip()->uuid() );
-    delete media;
 }
 
 void



More information about the Vlmc-devel mailing list