mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-08 05:49:17 +00:00
Prevent dangling pointer
This commit is contained in:
@ -60,6 +60,6 @@ namespace GraphicalUserInterface
|
||||
|
||||
Window::~Window()
|
||||
{
|
||||
delete this->mem;
|
||||
delete this->mem, this->mem = nullptr;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user