[Spice-devel] [PATCH spice-server v2 19/23] inputs-channel: Use GLib memory functions
Jonathon Jongsma
jjongsma at redhat.com
Fri Sep 22 21:27:59 UTC 2017
I guess this is one of the patches you mentioned in the cover letter
that have leaks?
Acked-by: Jonathon Jongsma <jjongsma at redhat.com>
On Wed, 2017-09-20 at 08:51 +0100, Frediano Ziglio wrote:
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
> server/inputs-channel.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/server/inputs-channel.c b/server/inputs-channel.c
> index 8e17cc724..b8944cb0f 100644
> --- a/server/inputs-channel.c
> +++ b/server/inputs-channel.c
> @@ -77,7 +77,7 @@ static SpiceTabletInstance*
> inputs_channel_get_tablet(InputsChannel *inputs);
>
> static SpiceKbdState* spice_kbd_state_new(RedsState *reds)
> {
> - SpiceKbdState *st = spice_new0(SpiceKbdState, 1);
> + SpiceKbdState *st = g_new0(SpiceKbdState, 1);
> st->reds = reds;
> return st;
> }
> @@ -93,7 +93,7 @@ struct SpiceMouseState {
>
> static SpiceMouseState* spice_mouse_state_new(void)
> {
> - return spice_new0(SpiceMouseState, 1);
> + return g_new0(SpiceMouseState, 1);
> }
>
> struct SpiceTabletState {
> @@ -102,7 +102,7 @@ struct SpiceTabletState {
>
> static SpiceTabletState* spice_tablet_state_new(void)
> {
> - return spice_new0(SpiceTabletState, 1);
> + return g_new0(SpiceTabletState, 1);
> }
>
> RedsState* spice_tablet_state_get_server(SpiceTabletState *st)
More information about the Spice-devel
mailing list