Re: [Spice-devel] [spice-gtk][PATCH] Prefer using g_malloc0()/g_free()

2014-07-15 Thread Marc-André Lureau
ack - Original Message - > As we already depend on GLib, let's use g_{malloc,new}0() instead of the > standard malloc() or the spice_{malloc,new}*() and g_free() instead of > the standard free() when possible. > Memory allocated by other libraries using malloc() should still be freed > by

[Spice-devel] [spice-gtk][PATCH] Prefer using g_malloc0()/g_free()

2014-07-15 Thread Fabiano FidĂȘncio
As we already depend on GLib, let's use g_{malloc,new}0() instead of the standard malloc() or the spice_{malloc,new}*() and g_free() instead of the standard free() when possible. Memory allocated by other libraries using malloc() should still be freed by free(). As a side effect of the changes, we