From c5784d139da08a19a5275d5886f396711ad4f0a7 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sat, 18 Jun 2011 08:36:16 +0000 Subject: Fix STR #2671: added missing object deallocation. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8820 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_set_fonts_xft.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/fl_set_fonts_xft.cxx b/src/fl_set_fonts_xft.cxx index 98907e586..12f426e3e 100644 --- a/src/fl_set_fonts_xft.cxx +++ b/src/fl_set_fonts_xft.cxx @@ -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) -- cgit v1.2.3