From 47164bf9541486f3fd7b32c361f1784f4745c2c3 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sun, 19 Dec 2021 19:49:39 +0100 Subject: Fix for issue #344 : New/Delete Type Mismatch on Windows --- src/Fl_win32.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index b8dfa57f0..9b972a9f7 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -2684,7 +2684,7 @@ void fl_free_fonts(void) { s = fl_fonts + i; for (f = s->first; f; f = ff) { ff = f->next; - delete f; + delete (Fl_GDI_Font_Descriptor*)f; s->first = ff; } } -- cgit v1.2.3