diff --git a/src/Buffer.cpp b/src/Buffer.cpp index d83b3a6514..c888112970 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -281,6 +281,8 @@ Buffer::~Buffer() // Remove any previewed LaTeX snippets associated with this buffer. graphics::Previews::get().removeLoader(*this); + + delete d; }