Hi Pekka and all, Just wanted to confirm the proper way of using GSources along with Sofia-SIP.
1. Create a root object GLib-based with su_glib_root_create() --> creates a GSource * internally 2. I get the GSource * with su_glib_root_gsource() 3. I attach the GSource * to the GLib Main context with g_source_attach() 4. Run main loop 5. Stop main loop 6. I destroy the GSource * (because I attached it) with g_source_destroy() 7. I destroy the root object with su_root_destroy() My questions: a) in step 2, when calling su_glib_root_gsource(), am I getting a NEW reference to the GSource? This is, do I need a g_source_unref() for each su_glib_root_gsource()? b) Is su_root_destroy() calling g_source_unref() for the GSource? Cheers, -Aleksander
------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel