Remove file added for HTML rendering.
authorCarl Hetherington <cth@carlh.net>
Mon, 15 Jul 2024 18:00:23 +0000 (20:00 +0200)
committerCarl Hetherington <cth@carlh.net>
Mon, 15 Jul 2024 18:00:57 +0000 (20:00 +0200)
src/wx/html_dialog.cc
src/wx/html_dialog.h

index 0f8fe22c16ff43f7b7df3449f8202b5f22aea2b1..0543a66d5a564486fd0c3e96a1c9d9a14edfef84 100644 (file)
@@ -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)
 {
index c5a538a5ccb03b3bdc59d908339786d7762b24cb..46feba3ebbbe70b9b20876a57ef326a5dd3e4ac0 100644 (file)
@@ -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);