forked from Mirrors/openclonk
C4FileMonitor(win): use StdBuf::DeletePointer()
... on memory GrabPointer()ed from a StdCopyStrBuf. Fixes the previous commit.
parent
838f0793ff
commit
224ab1b11b
|
@ -288,7 +288,7 @@ void C4FileMonitor::OnThreadEvent(C4InteractiveEventType eEvent, void *pEventDat
|
|||
{
|
||||
if (eEvent != Ev_FileChange) return;
|
||||
pCallback((const char *)pEventData, 0);
|
||||
free(pEventData);
|
||||
StdBuf::DeletePointer(pEventData);
|
||||
}
|
||||
|
||||
HANDLE C4FileMonitor::GetEvent()
|
||||
|
|
Loading…
Reference in New Issue