From 5c979b94ed19146c1227ba6b4910c23efddaf385 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 15 Jul 2024 20:00:23 +0200 Subject: Remove file added for HTML rendering. --- src/wx/html_dialog.cc | 6 ++++++ src/wx/html_dialog.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/wx/html_dialog.cc b/src/wx/html_dialog.cc index 0f8fe22c1..0543a66d5 100644 --- a/src/wx/html_dialog.cc +++ b/src/wx/html_dialog.cc @@ -76,6 +76,12 @@ HTMLDialog::HTMLDialog (wxWindow* parent, wxString title, wxString html, bool ok } +HTMLDialog::~HTMLDialog() +{ + wxMemoryFSHandler::RemoveFile("me.jpg"); +} + + void HTMLDialog::link_clicked (wxHtmlLinkEvent& ev) { diff --git a/src/wx/html_dialog.h b/src/wx/html_dialog.h index c5a538a5c..46feba3eb 100644 --- a/src/wx/html_dialog.h +++ b/src/wx/html_dialog.h @@ -32,6 +32,7 @@ class HTMLDialog : public wxDialog { public: HTMLDialog (wxWindow* parent, wxString title, wxString html, bool ok = false); + ~HTMLDialog(); private: void link_clicked (wxHtmlLinkEvent& ev); -- cgit v1.2.3