mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-22 15:20:39 +01:00
[apps] Ensure to reset pointers when their content have been deleted
Change-Id: I4c236c045cbe5e6ba215cbf56b27eba92133b675
This commit is contained in:
@@ -36,9 +36,11 @@ void Function::setColor(KDColor color) {
|
||||
Function::~Function() {
|
||||
if (m_layout != nullptr) {
|
||||
delete m_layout;
|
||||
m_layout = nullptr;
|
||||
}
|
||||
if (m_expression != nullptr) {
|
||||
delete m_expression;
|
||||
m_expression = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user