mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-07 05:19:17 +00:00
Prevent dangling pointer
This commit is contained in:
@ -117,8 +117,8 @@ namespace GraphicalUserInterface
|
||||
|
||||
WidgetCollection::~WidgetCollection()
|
||||
{
|
||||
delete this->mem;
|
||||
delete this->Buffer;
|
||||
delete this->CurrentFont;
|
||||
delete this->mem, this->mem = nullptr;
|
||||
delete this->Buffer, this->Buffer = nullptr;
|
||||
delete this->CurrentFont, this->CurrentFont = nullptr;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user