NS_ADDREF(anEvent.widget);
void InitConfigureEvent(GdkEventConfigure *aConf,                            gpointer   p,                            nsSizeEvent &anEvent,                            PRUint32   aEventType){  anEvent.message = aEventType;  anEvent.widget  = (nsWidget *) p;  NS_ADDREF(anEvent.widget);  anEvent.eventStructType = NS_SIZE_EVENT;  if (aConf != NULL) {  /* do we accually need to alloc a new rect, or can we just set the     current one */    nsRect *foo = new nsRect(aConf->x, aConf->y, aConf->width, aConf->height);    anEvent.windowSize = foo;    anEvent.point.x = aConf->x;    anEvent.point.y = aConf->y;    anEvent.mWinWidth = aConf->width;    anEvent.mWinHeight = aConf->height;  }// this usually returns 0  anEvent.time = 0;}