don't return the address of something allocated on the stack

This commit is contained in:
blizzard%appliedtheory.com 1998-12-29 01:07:35 +00:00
parent de15a8198e
commit 34a600b766

View File

@ -149,8 +149,8 @@ void InitAllocationEvent(GtkAllocation *aAlloc,
anEvent.eventStructType = NS_SIZE_EVENT;
if (aAlloc != NULL) {
nsRect rect(aAlloc->x, aAlloc->y, aAlloc->width, aAlloc->height);
anEvent.windowSize = ▭
nsRect *foo = new nsRect(aAlloc->x, aAlloc->y, aAlloc->width, aAlloc->height);
anEvent.windowSize = foo;
anEvent.point.x = aAlloc->x;
anEvent.point.y = aAlloc->y;
anEvent.mWinWidth = aAlloc->width;