Free memory only after last reference

Found by: scan-build
master
Avinash Sonawane 2021-03-23 11:56:58 +05:30
parent fdc1a4c371
commit c22bdad624
1 changed files with 2 additions and 2 deletions

View File

@ -418,10 +418,10 @@ static void monitor_free(XfcePanelPlugin *plugin, t_global_monitor *global)
}
gtk_widget_destroy(global->tooltip_text);
g_free(global);
close_netload( &(global->monitor->data) );
g_free(global);
}