branch: Fix bug #5758: Crash when closing the dosbox from which LyX was started

The wmf_mime_ object was deleted both when deleting GuiApplication::Private as from 
QWindowsMimeList::~QWindowsMimeList().

see r29326.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29328 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-04-19 14:03:39 +00:00
parent 0dd017f0fc
commit 9eabb73fa5

View File

@ -631,7 +631,13 @@ public:
struct GuiApplication::Private
{
Private(): language_model_(0), global_menubar_(0) {}
Private(): language_model_(0), global_menubar_(0)
{
#ifdef Q_WS_WIN
/// WMF Mime handler for Windows clipboard.
wmf_mime_ = new QWindowsMimeMetafile();
#endif
}
///
QSortFilterProxyModel * language_model_;
@ -679,7 +685,7 @@ struct GuiApplication::Private
#ifdef Q_WS_WIN
/// WMF Mime handler for Windows clipboard.
QWindowsMimeMetafile wmf_mime_;
QWindowsMimeMetafile * wmf_mime_;
#endif
};