Fix malloc/delete mismatch (X11 only)

This commit is contained in:
Albrecht Schlosser 2021-09-12 13:37:53 +02:00
parent cc0657d7a7
commit 828d3dd722

View File

@ -75,5 +75,5 @@ void Fl_Xlib_Graphics_Driver::reset_pen_width(void *data) {
XGCValues *gc_values = (XGCValues*)data;
line_width_ = gc_values->line_width;
XChangeGC(fl_display, gc_, GCLineWidth, gc_values);
delete gc_values;
free(data);
}