mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 02:37:42 +00:00
Kernel: Make Process a Weakable class.
Use this to fix a use-after-free in ~GraphicsBitmap(). We'd hit this when the WindowServer was doing a deferred destruction of a WSWindow whose backing store referred to a now-reaped Process.
This commit is contained in:
parent
fc0b63ca3c
commit
2dc9c86bad
3 changed files with 5 additions and 4 deletions
|
@ -43,7 +43,7 @@ private:
|
|||
size_t m_pitch { 0 };
|
||||
|
||||
#ifdef KERNEL
|
||||
Process* m_client_process { nullptr };
|
||||
WeakPtr<Process> m_client_process;
|
||||
Region* m_client_region { nullptr };
|
||||
Region* m_server_region { nullptr };
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue