mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 764773: Fix memory leak in UeventPoller. r=cjones
This commit is contained in:
parent
f812a87e93
commit
a4fdf883d8
@ -68,7 +68,6 @@ private:
|
||||
MessageLoopForIO* mIOLoop;
|
||||
MessageLoopForIO::FileDescriptorWatcher mReadWatcher;
|
||||
|
||||
NetlinkEvent mNetlinkEvent;
|
||||
const static int kBuffsize = 64 * 1024;
|
||||
uint8_t mBuffer [kBuffsize];
|
||||
|
||||
@ -155,8 +154,9 @@ NetlinkPoller::OnFileCanReadWithoutBlocking(int fd)
|
||||
// fatal error on netlink socket which should not happen
|
||||
_exit(1);
|
||||
}
|
||||
mNetlinkEvent.decode(reinterpret_cast<char*>(mBuffer), ret);
|
||||
mUeventObserverList.Broadcast(mNetlinkEvent);
|
||||
NetlinkEvent netlinkEvent;
|
||||
netlinkEvent.decode(reinterpret_cast<char*>(mBuffer), ret);
|
||||
mUeventObserverList.Broadcast(netlinkEvent);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user