mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-13 19:41:49 +00:00
don't return the address of something allocated on the stack
This commit is contained in:
parent
de15a8198e
commit
34a600b766
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user