Fixed memory leak in ChartWidget by destroying GtkWindow