Re: Simple CTree-gtk-program, with error



On Tue, 2001-11-06 at 16:04, Thomas Langås wrote:
Hi!

    gtk_ctree_insert_node(GTK_CTREE(ctree), NULL, NULL, fields, 2, NULL, NULL, NULL, NULL, 0, 0);
    g_free(fields[0]);
    g_free(fields[1]);
    g_free(fields[2]);
    g_free(fields[3]);
    g_free(fields[4]);
  }
  

The fields should be free'ed after an insert.
I think GtkCTree does that for you.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]