Re: [Spice-devel] Is it a possible memory leak (spice-gtk/src/channel-display.c)?

2020-09-09 Thread Frediano Ziglio
> Hi all, for the latest commit in 'spice-gtk/src/channel-display.c', in the > static function > 'create_canvas', the first returning point (line 997) and the 'if > (surface->primary)' (line 1036) > is not taken then the second returning point, the allocated memory for > surface would be lost. >

[Spice-devel] Is it a possible memory leak (spice-gtk/src/channel-display.c)?

2020-09-09 Thread Ding Fei
Hi all, for the latest commit in 'spice-gtk/src/channel-display.c', in the static function 'create_canvas', the first returning point (line 997) and the 'if (surface->primary)' (line 1036) is not taken then the second returning point, the allocated memory for surface would be lost. All the