diff options
Diffstat (limited to 'src/tools/qcomponentfactory.cpp')
-rw-r--r-- | src/tools/qcomponentfactory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/qcomponentfactory.cpp b/src/tools/qcomponentfactory.cpp index 9109cc5b2..22e871409 100644 --- a/src/tools/qcomponentfactory.cpp +++ b/src/tools/qcomponentfactory.cpp @@ -180,7 +180,7 @@ TQRESULT TQComponentFactory::createInstance( const TQString &cid, const TQUuid & res = library->queryInterface( iid, iface ); } TQLibraryInterface *libiface = 0; - if ( library->queryInterface( IID_QLibrary, (TQUnknownInterface**)&libiface ) != TQS_OK || !qApp ) { + if ( library->queryInterface( IID_QLibrary, (TQUnknownInterface**)&libiface ) != TQS_OK || !tqApp ) { delete library; // only deletes the object, thanks to TQLibrary::Manual } else { libiface->release(); |