Re: colormap free question



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]