Is this TreeModel memory leak or something wrong in my code???
- From: Viktors Petrovs <viks77 inbox lv>
- To: gtk-app-devel-list gnome org
- Subject: Is this TreeModel memory leak or something wrong in my code???
- Date: Thu, 18 May 2006 16:32:25 +0300
Hello,
i'm trying to use GtkListStore. I'm calling this function many times (i
use timer) and i see growing memory used by my program in Gnome System
Monitor.
What am i doing wrong?
void test_add_delete_line (void)
{
GtkWidget *TreeView = lookup_widget (GTK_WIDGET (MainWindow),
"TestTreeView");
GtkListStore *Model = GTK_LIST_STORE (gtk_tree_view_get_model
(GTK_TREE_VIEW (TreeView)));
GtkTreeIter iter;
// append row
gtk_list_store_append (Model, &iter);
// add some data
gtk_list_store_set (Model, &iter, 0, "test", 0, 0, 0, 0, 0);
// remove row
gtk_list_store_remove (Model, &iter);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]