Author: manolo Date: 2011-06-18 01:36:16 -0700 (Sat, 18 Jun 2011) New Revision: 8820 Log: Fix STR #2671: added missing object deallocation.
Modified: branches/branch-1.3/src/fl_set_fonts_xft.cxx Modified: branches/branch-1.3/src/fl_set_fonts_xft.cxx =================================================================== --- branches/branch-1.3/src/fl_set_fonts_xft.cxx 2011-06-17 21:17:07 UTC (rev 8819) +++ branches/branch-1.3/src/fl_set_fonts_xft.cxx 2011-06-18 08:36:16 UTC (rev 8820) @@ -3,7 +3,7 @@ // // More font utilities for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2010 by Bill Spitzak and others. +// Copyright 1998-2011 by Bill Spitzak and others. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Library General Public @@ -241,8 +241,9 @@ // Hopefully, this is a set of all the fonts... fnt_set = FcFontList(0, fnt_pattern, fnt_obj_set); - // We don't need the fnt_pattern any more, release it + // We don't need the fnt_pattern and fnt_obj_set any more, release them FcPatternDestroy(fnt_pattern); + FcObjectSetDestroy(fnt_obj_set); // Now, if we got any fonts, iterate through them... if (fnt_set) _______________________________________________ fltk-commit mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-commit
