mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
keep reference to QByteArray object in QLibraryPrivate::load_sys()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
34be28265b
commit
0f8a84ea41
1 changed files with 2 additions and 1 deletions
|
@ -47,7 +47,8 @@ bool QLibraryPrivate::load_sys()
|
||||||
dlFlags |= RTLD_LOCAL;
|
dlFlags |= RTLD_LOCAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
pHnd = ::dlopen(QFile::encodeName(fileName).constData(), dlFlags);
|
const QByteArray fileNameBytes = QFile::encodeName(fileName);
|
||||||
|
pHnd = ::dlopen(fileNameBytes.constData(), dlFlags);
|
||||||
if (!pHnd) {
|
if (!pHnd) {
|
||||||
errorString = QLibrary::tr("Cannot load library %1: %2").arg(fileName).arg(qdlerror());
|
errorString = QLibrary::tr("Cannot load library %1: %2").arg(fileName).arg(qdlerror());
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue