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)
This commit is contained in:
Andrew Kelley
2009-09-30 02:08:18 -07:00
parent 2622edd140
commit 186378a4f1

View File

@@ -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;
}
}