implement custom dialog destroy method

This commit is contained in:
yggverse 2024-08-03 19:52:00 +03:00
parent 5f76121c29
commit af16893ec4

View file

@ -219,13 +219,13 @@ class Auth
} }
$this->gtk->destroy(); $this->destroy();
return true; return true;
} }
// Dialog canceled // Dialog canceled
$this->gtk->destroy(); $this->destroy();
return false; return false;
} }
@ -247,4 +247,13 @@ class Auth
} }
} }
} }
public function destroy(): void
{
// Free memory
$this->_options = [];
// Destroy GTK object
$this->gtk->destroy();
}
} }