summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2011-06-18 08:36:16 +0000
committerManolo Gouy <Manolo>2011-06-18 08:36:16 +0000
commitc5784d139da08a19a5275d5886f396711ad4f0a7 (patch)
tree51cb318516faa137b64c7ce78d27676d8176164a /src
parent29d9c40dead6a57a86ebac49d38a4c40bb4a313b (diff)
Fix STR #2671: added missing object deallocation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8820 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/fl_set_fonts_xft.cxx5
1 files changed, 3 insertions, 2 deletions
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)