GLib Reference Documentation



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]