Re: [gtk-list] Bad preview colormap refcounting in 970925
- From: Marius Vollmer <mvo zagadka ping de>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Bad preview colormap refcounting in 970925
- Date: 23 Oct 1997 19:30:43 +0200
Kenneth Albanowski <kjahds@kjahds.com> writes:
>
> I'm not at all sure where the source of the problem is, but I'm running
> into what is clearly an underref situation with colormaps and
> gtk_preview_get_cmap. Specifically, simply saying gdk_colormap_ref(x) and
> gdk_colormap_unref(x) in succession, the color map is apparently deleted.
Hmm, could you try the patch I uploaded to ftp.gimp.org? I think it
is `gtk-mvo-971013-0'. It addresses ref counting issues.
Unfortunately this patch is not backward compatible, so nobody will
try it, I'm afraid. Try adding
#define gdk_font_free gdk_font_unref
#define gdk_fonset_free gdk_font_unref
#define gdk_pixmap_destroy gdk_pixmap_unref
#define gdk_colormap_destroy gdk_colormap_unref
#define gtk_accelerator_table_destroy gtk_accelerator_table_unref
#define gtk_tooltips_destroy gtk_tooltips_unref
somewhere appropriate.
I'm almost sure that the patch fixes your problem.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]