summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-07-15 20:00:23 +0200
committerCarl Hetherington <cth@carlh.net>2024-07-15 20:00:57 +0200
commit5c979b94ed19146c1227ba6b4910c23efddaf385 (patch)
tree3dc914fd2ba61550306f4adbf211779eda8230c5
parent457d3cacfd449bde047b91ca62d1f353adf5e0f5 (diff)
Remove file added for HTML rendering.
-rw-r--r--src/wx/html_dialog.cc6
-rw-r--r--src/wx/html_dialog.h1
2 files changed, 7 insertions, 0 deletions
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);