diff -r 402f4cde3ea6 -r 22a885118d50 mapeditor.cpp --- a/mapeditor.cpp Wed Mar 08 12:59:07 2006 +0000 +++ b/mapeditor.cpp Wed Mar 08 12:59:08 2006 +0000 @@ -30,6 +30,7 @@ #include "editxlinkdialog.h" #include "exports.h" #include "extrainfodialog.h" +#include "file.h" #include "linkablemapobj.h" #include "mainwindow.h" #include "misc.h" @@ -2673,7 +2674,7 @@ { BranchObj *bo=((BranchObj*)selection); - QFileDialog *fd=new QFileDialog( this,QString ("vym - ")+tr("Load image")); + QFileDialog *fd=new QFileDialog( this); fd->setMode (QFileDialog::ExistingFiles); fd->addFilter (QString (tr("Images") + " (*.png *.bmp *.xbm *.jpg *.png *.xpm *.gif *.pnm)")); ImagePreview *p =new ImagePreview (fd); @@ -2705,6 +2706,8 @@ adjustCanvasSize(); canvas()->update(); } + delete (p); + delete (fd); } }