Delete image on close

This commit is contained in:
Jeff Shillitto
2019-08-14 22:38:41 +10:00
parent 5a08afdb3f
commit 0ee9ed8e3a
2 changed files with 12 additions and 0 deletions

View File

@@ -153,6 +153,12 @@ void QtTextReader::Close()
{
// Mark as "closed"
is_open = false;
// Delete the image
image.reset();
info.vcodec = "";
info.acodec = "";
}
}