colormap free question
- From: Chris Ellec <cae oco net>
- To: gtk-list gnome org
- Subject: colormap free question
- Date: Thu, 15 Mar 2001 16:29:55 -0800
hello,
I use a colormap with gtk_widget_get_colormap(widget) in an expose_event
to draw some circles of various colors. This works fine.
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.
Should it be global ? Do I have to free it ?
Thanks for your help,
Chris.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]