Remove the right XID from the xid table. (#34327, Sampo Savolainen, Tim

2006-06-04  Matthias Clasen  <mclasen@redhat.com>

        * gdk/x11/gdkfont-x11.c (_gdk_font_destroy): Remove the right
        XID from the xid table.  (#34327, Sampo Savolainen, Tim Janik)
This commit is contained in:
Matthias Clasen 2006-06-05 01:14:57 +00:00 committed by Matthias Clasen
parent 959c272bd4
commit 150b52e207
3 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-06-04 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkfont-x11.c (_gdk_font_destroy): Remove the right
XID from the xid table. (#34327, Sampo Savolainen, Tim Janik)
2006-06-04 Behdad Esfahbod <behdad@gnome.org>
* gtk/gtkprintoperationpreview.h: Add missing G_END_DECLS (#343838)

View File

@ -1,3 +1,8 @@
2006-06-04 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkfont-x11.c (_gdk_font_destroy): Remove the right
XID from the xid table. (#34327, Sampo Savolainen, Tim Janik)
2006-06-04 Behdad Esfahbod <behdad@gnome.org>
* gtk/gtkprintoperationpreview.h: Add missing G_END_DECLS (#343838)

View File

@ -367,7 +367,7 @@ _gdk_font_destroy (GdkFont *font)
switch (font->type)
{
case GDK_FONT_FONT:
_gdk_xid_table_remove (private->display, ((XFontStruct *) private->xfont)->fid);
_gdk_xid_table_remove (private->display, private->xid);
XFreeFont (GDK_DISPLAY_XDISPLAY (private->display),
(XFontStruct *) private->xfont);
break;