[vlmc-devel] commit: MainWindow.cpp: Fixes segmentation fault, delete 'settings' after all the attributes are retrived. (Rohit Yadav )

git at videolan.org git at videolan.org
Fri Sep 24 16:42:14 CEST 2010


vlmc | branch: master | Rohit Yadav <rohityadav89 at gmail.com> | Fri Sep 24 20:22:49 2010 +0530| [9d6fafed2cf253163e9ad8bd183610a4a1ad76fb] | committer: Rohit Yadav 

MainWindow.cpp: Fixes segmentation fault, delete 'settings' after all the attributes are retrived.

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

 src/Gui/MainWindow.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp
index 248e052..9e4cb0a 100644
--- a/src/Gui/MainWindow.cpp
+++ b/src/Gui/MainWindow.cpp
@@ -628,7 +628,6 @@ MainWindow::renderVideoSettings( bool exportType )
     double      fps            = settings->fps();
     quint32     vbitrate       = settings->videoBitrate();
     quint32     abitrate       = settings->audioBitrate();
-    delete settings;
 
     if ( exportType )
         outputFileName = VLMC_GET_STRING( "general/TempFolderLocation" ) + "/" +
@@ -637,6 +636,8 @@ MainWindow::renderVideoSettings( bool exportType )
     else
         outputFileName = settings->outputFileName();
 
+    delete settings;
+
     return renderVideo( outputFileName, width, height, fps, vbitrate, abitrate );
 }
 



More information about the Vlmc-devel mailing list