Re: colormap free question
- From: Havoc Pennington <hp redhat com>
- To: Chris Ellec <cae oco net>
- Cc: gtk-list gnome org
- Subject: Re: colormap free question
- Date: 15 Mar 2001 22:29:45 -0500
Chris Ellec <cae oco net> writes:
>
> However, I imagine I need to do a free(colormap) somewhere. If I put it at the
> end of the expose_event, the program segfaults. Since I have colormap as a
> local variable, I can't free it anywhere else.
>
Two mistakes:
- you don't need to free the result of gtk_widget_get_colormap()
- if you did, you'd use gdk_colormap_unref() not free()
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]