Fix STR #2671: added missing object deallocation.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8820 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2011-06-18 08:36:16 +00:00
parent 29d9c40dea
commit c5784d139d

View File

@ -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 @@ Fl_Font Fl::set_fonts(const char* pattern_name)
// 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)