Re: GList empty after iteration?

2011-09-12 Thread Andrey Maklakov
Hello Craig, I think this is because after first loop, variable "events" is NULL, and you cant get first element of GList from it: g_list_next() --- ReturnsĀ : the next element, or NULL if there are no more elements. > Hi All, > > I am confused about GList. My application is parsing a file and

Gtk+ memory management

2011-04-11 Thread Andrey Maklakov
Hello. Can you help me and answer some questions about memory management in Gtk+? Look at next function: 1 void 2 tbar_makemenu (gint button) 3 { 4 const gchar *sid; 5 GList *list = NULL; 6 7 tbar_widget.menu[button] = gtk_menu_new (); 8 if (button == SID) 9 f