valgrind reports memory leak on g_main_loop_run

2008-12-17 Thread Sune Ahlgren
Hi, I use 1 GMain event loop in my main context for monitoring of events on file descriptors. I shut down my program by receiving a SIGTERM. In this signal handler I do the following: g_main_loop_quit(loop); g_main_loop_unref(loop); loop = NULL; I've also tried to move: g_main_loop_u

GLib Main event loop with IOChannel and order of events? cross-post gtk-list (no answer)

2008-12-11 Thread Sune Ahlgren
Hi, I'm writing a UDP server where I set up 1 socket for multicast messages(SOCKET A) and 1 for the wildcard address ANY(SOCKET B). These sockets are monitored as IOChannels and added to the main event loop. Problem -- In case of receiving a single multicast message I get 1 event o