From 186378a4f1c28dbc6c1547b71d3954c4aaf28642 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 30 Sep 2009 02:08:18 -0700 Subject: [PATCH] Fixed segfault when libmp3lame.so is not found Applied pitanga's patch against lame_library - Fixes missing return statement if the library was not found. (Thanks pitanga) --- src/core/lame_library.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/lame_library.cpp b/src/core/lame_library.cpp index 7e80136ee..beed0b451 100644 --- a/src/core/lame_library.cpp +++ b/src/core/lame_library.cpp @@ -44,6 +44,7 @@ LameLibrary::LameLibrary() : QMessageBox::Ok | QMessageBox::Default ); delete m_lameLib; m_lameLib = NULL; + return; } // grab the functions and stuff we need @@ -155,6 +156,7 @@ LameLibrary::LameLibrary() : m_lameLib->unload(); delete m_lameLib; m_lameLib = NULL; + return; } }