FLTK logo

[master] 47164bf - Fix for issue #344 : New/Delete Type Mismatch on Windows

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 47164bf - Fix for issue #344 : New/Delete Type Mismatch on Windows "ManoloFLTK" Dec 19, 2021  
 
commit 47164bf9541486f3fd7b32c361f1784f4745c2c3
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Sun Dec 19 19:49:39 2021 +0100
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Sun Dec 19 19:49:39 2021 +0100

    Fix for issue #344 : New/Delete Type Mismatch on Windows

 src/Fl_win32.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git src/Fl_win32.cxx src/Fl_win32.cxx
index b8dfa57..9b972a9 100644
--- src/Fl_win32.cxx
+++ 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;
     }
   }
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.