And Google does not provide any insight.
In a routine that is called a few times a second I need to draw.
This code is a problem :
Code: Select all
GdkGC *myGC ;
//this leaks lots of memory here !!
myGC = gdk_gc_new(parentcontainer->window);
// if a color changes need to do this but it leaks memory...
grey.red=1000;
grey.green=1000;
grey.blue=10000 * adj;
gdk_colormap_alloc_color (colormap, &grey, TRUE, TRUE);
I can not find a way to free the allocated gc and color.
I'm grateful for all the help I can get.