Skip to content

Commit bab9163

Browse files
committedApr 26, 2013
Small cleanup for e0838b0
1 parent b57841f commit bab9163

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎src/app/qgisappinterface.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,8 +560,6 @@ void QgisAppInterface::preloadForm( QString uifile )
560560

561561
void QgisAppInterface::cacheloadForm( QString uifile )
562562
{
563-
QUiLoader loader;
564-
565563
QFile file( uifile );
566564

567565
if ( file.open( QFile::ReadOnly ) )
@@ -572,6 +570,7 @@ void QgisAppInterface::cacheloadForm( QString uifile )
572570
loader.setWorkingDirectory( fi.dir() );
573571
QWidget *myWidget = loader.load( &file );
574572
file.close();
573+
delete myWidget;
575574
}
576575
}
577576

0 commit comments

Comments
 (0)
Please sign in to comment.