Hi,

I found the memory leaks in drawing to NSView by PSmoveto, PSlineto, ... functions 
with xgps backend

In xgps/Source/XGGState.m on line 46 is function:
static void FreeDraw(DrawObject_t *o)
{
  if (o->retained)
    o->retained--;
  else
    NSZoneFree(o->zone, o);
}


the correction is:
static void FreeDraw(DrawObject_t *o)
{
  if (o->retained) 
        o->retained--;
  if (o->retained == 0)
    NSZoneFree(o->zone, o);
}


Thank you.

Jan Trembulak

Reply via email to