GSList memory problem

view story

http://forums.fedoraforum.org – I'm trying to write a program in C which takes data from a SQLite database and displays it on the screen. For this I have a function GSList* db_get_all_domains() and a function void display_domains(GSList* domains). When I use GDB and set a breakpoint in the beginning of display_domains(...), I can get the domain name to show using ((domain*)domains->data)->name. Then the program enters a for ( ;; ) loop and it puts the (domain*)domains->data in a variable domain* d. From that moment on, I cannot even get the value using ((domain*)domains->data)->name in GDB. I made a screens (HowTos)