Plug a dynamic leak
A leak occured in the timer code, and thus the memory was growing over time. Cf. src/task-manager.c(model_update_tree_iter), the old_state variable was not free'd. Plugged other static leaks at the same time.
This commit is contained in:
@@ -147,10 +147,14 @@ xtm_process_window_finalize (GObject *object)
|
||||
"sort-column-id", sort_column_id, "sort-type", sort_type, NULL);
|
||||
}
|
||||
|
||||
if (GTK_IS_TREE_VIEW (priv->treeview))
|
||||
gtk_widget_destroy (priv->treeview);
|
||||
|
||||
if (GTK_IS_STATUSBAR (priv->statusbar))
|
||||
gtk_widget_destroy (priv->statusbar);
|
||||
|
||||
if (XTM_IS_SETTINGS (priv->settings))
|
||||
{
|
||||
g_object_unref (priv->settings);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user