DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2495
Version: 1.3-current


It seems that some minor leaks still exist on fluid this patch is against
the last repository.

I addresses the release of memory allocated for the Fl_Type base class the
actually are never released.


Link: http://www.fltk.org/str.php?L2495
Version: 1.3-current
Index: Fl_Type.cxx
===================================================================
--- Fl_Type.cxx (revision 8095)
+++ Fl_Type.cxx (working copy)
@@ -658,6 +658,12 @@
   if (next) next->prev = prev; else last = prev;
   if (current == this) current = 0;
   if (parent) parent->remove_child(this);
+  if (name_) free((void*)name_);
+  if (label_) free((void*)label_);
+  if (callback_) free((void*)callback_);
+  if (user_data_) free((void*)user_data_);
+  if (user_data_type_) free((void*)user_data_type_);
+  if (comment_) free((void*)comment_);
 }
 
 int Fl_Type::is_parent() const {return 0;}
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to