Fixed memory leak

pull/387/head
parent 0c2229bcd5
commit a9be41dc99

@ -236,6 +236,8 @@ void on_configuration_hub_open(GtkFlowBox *,GtkFlowBoxChild *child, main_window
config_hub_icon *cur_icon = g_object_get_data(G_OBJECT(child),"config_hub_icon");
gtk_notebook_set_current_page(GTK_NOTEBOOK(widgets->Notebook),cur_icon->page);
yon_page_init(widgets,cur_icon->page);
yon_page_update(widgets);
switch(cur_icon->page){
case YON_PAGE_OS_COMPONENTS:
case YON_PAGE_KERNEL:
@ -247,8 +249,6 @@ void on_configuration_hub_open(GtkFlowBox *,GtkFlowBoxChild *child, main_window
break;
default: break;
};
yon_page_init(widgets,cur_icon->page);
yon_page_update(widgets);
}
void yon_configuration_hub_add(GtkFlowBox *target, char *name, char *icon, enum YON_PAGES page){

@ -602,6 +602,7 @@ void on_page_next_clicked(GtkWidget *, main_window *widgets){
page = yon_page_get_next(widgets,page);
if ((int)page!=-1){
gtk_notebook_set_current_page(GTK_NOTEBOOK(widgets->Notebook),page);
yon_page_init(widgets,page);
switch(page){
case YON_PAGE_KERNEL:
case YON_PAGE_KERNEL_ADDON:
@ -612,7 +613,6 @@ void on_page_next_clicked(GtkWidget *, main_window *widgets){
break;
default: break;
};
yon_page_init(widgets,page);
}
yon_page_update(widgets);
}

Loading…
Cancel
Save