GLib Reference Documentation should mention that:
1 - 'error' must be initialized to NULL before call
'g_spawn_command_line_sync'
2 - 'standard_output' and 'standard_error'
must be freed with 'g_free' after use.
3 - 'error' must be freed with: if (errorPtr) g_error_free (errorPtr);
or lot of coredump and memory leak occur.

Valerio
_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list

Reply via email to