~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to app/text/gimptext-compat.c

  • Committer: Bazaar Package Importer
  • Author(s): Pedro Fragoso
  • Date: 2008-08-22 11:50:05 UTC
  • mfrom: (0.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 34.
  • Revision ID: james.westby@ubuntu.com-20080822115005-yxj5svf3v9x1mkr7
Tags: upstream-2.4.7
ImportĀ upstreamĀ versionĀ 2.4.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
154
154
  context = pango_ft2_font_map_create_context (PANGO_FT2_FONT_MAP (fontmap));
155
155
  g_object_unref (fontmap);
156
156
 
 
157
  /*  Workaround for bug #143542 (PangoFT2Fontmap leak),
 
158
   *  see also bug #148997 (Text layer rendering leaks font file descriptor):
 
159
   *
 
160
   *  Calling pango_ft2_font_map_substitute_changed() causes the
 
161
   *  font_map cache to be flushed, thereby removing the circular
 
162
   *  reference that causes the leak.
 
163
   */
 
164
  g_object_weak_ref (G_OBJECT (context),
 
165
                     (GWeakNotify) pango_ft2_font_map_substitute_changed,
 
166
                     fontmap);
 
167
 
157
168
  layout = pango_layout_new (context);
158
169
  g_object_unref (context);
159
170