mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
~Buffer: Move wa_ destruction to Buffer::~Impl()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21883 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
5cae280282
commit
ff381ed2fa
@ -164,6 +164,14 @@ class Buffer::Impl
|
||||
public:
|
||||
Impl(Buffer & parent, FileName const & file, bool readonly);
|
||||
|
||||
~Impl()
|
||||
{
|
||||
if (wa_) {
|
||||
wa_->closeAll();
|
||||
delete wa_;
|
||||
}
|
||||
}
|
||||
|
||||
BufferParams params;
|
||||
LyXVC lyxvc;
|
||||
string temppath;
|
||||
@ -273,12 +281,6 @@ Buffer::~Buffer()
|
||||
|
||||
// Remove any previewed LaTeX snippets associated with this buffer.
|
||||
graphics::Previews::get().removeLoader(*this);
|
||||
|
||||
if (d->wa_) {
|
||||
d->wa_->closeAll();
|
||||
delete d->wa_;
|
||||
}
|
||||
delete d;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user