Is this TreeModel memory leak or something wrong in my code???

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
What am i doing wrong?

void test_add_delete_line (void)
    GtkWidget *TreeView = lookup_widget (GTK_WIDGET (MainWindow),
    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]