Re: [PATCH 1/2] server: add wl_input_device_fini()

2012-01-03 Thread Kristian Høgsberg
On Tue, Jan 3, 2012 at 9:32 AM, Pekka Paalanen wrote: > Add a clean-up function for destroying all objects created in > wl_input_device_init(). Can be used to fix memory leaks reported by > Valgrind in the demos. > > The init function was also missing an explicit initialisation of the > 'keys' arr

[PATCH 1/2] server: add wl_input_device_fini()

2012-01-03 Thread Pekka Paalanen
Add a clean-up function for destroying all objects created in wl_input_device_init(). Can be used to fix memory leaks reported by Valgrind in the demos. The init function was also missing an explicit initialisation of the 'keys' array. Add the explicit array init, although it is redundant with the