mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-29 20:44:25 +00:00
cleanup heap objects
This commit is contained in:
parent
aa35a91923
commit
af6b1efe32
@ -57,11 +57,21 @@ void Tab::append(
|
||||
void Tab::close(
|
||||
int number
|
||||
) {
|
||||
auto page = get_nth_page(
|
||||
number
|
||||
);
|
||||
|
||||
auto label = get_tab_label(
|
||||
* page
|
||||
);
|
||||
|
||||
delete page;
|
||||
delete label;
|
||||
|
||||
remove_page(
|
||||
number
|
||||
);
|
||||
|
||||
// @TODO clean memory
|
||||
// @TODO fix GtkGizmo reported min height, but sizes must be >= 0
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user