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