mirror of https://github.com/deadw00d/AROS.git
Set native UserPort to NULL when no UserPort on abiv0 side
This avoid double free where first Intuition frees UserPort and then muimaster frees it, because it set NULL on abiv0 UserPort and exptected Intuition not to free it.
This commit is contained in:
parent
0f68a09f76
commit
f28275f6cd
|
@ -265,6 +265,11 @@ BOOL abiv0_ModifyIDCMP(struct WindowV0 *window, ULONG flags, struct LibraryV0 *I
|
|||
winproxy->native->UserPort = msgpproxy->native;
|
||||
msgpproxy->translate = Intuition_Translate;
|
||||
}
|
||||
else
|
||||
{
|
||||
winproxy->native->UserPort = NULL;
|
||||
}
|
||||
|
||||
return ModifyIDCMP(winproxy->native, flags);
|
||||
}
|
||||
MAKE_PROXY_ARG_2(ModifyIDCMP);
|
||||
|
|
Loading…
Reference in New Issue