This commit is contained in:
Richard Heck 2015-07-22 12:08:20 -04:00
parent 17a033c15a
commit 2b8ebe9f0d

View File

@ -113,6 +113,9 @@ PreviewImage::Impl::Impl(PreviewImage & p, PreviewLoader & l,
PreviewImage::Impl::~Impl() PreviewImage::Impl::~Impl()
{ {
// If these images are generated for a clone, then that may be
// because we are previewing. We therefore do not want to delete
// them when this Buffer is destroyed.
if (!ploader_.buffer().isClone()) if (!ploader_.buffer().isClone())
iloader_.filename().removeFile(); iloader_.filename().removeFile();
} }