[Spice-devel] [spice-gtk] squash-me: pointer might be null

Pavel Grunt pgrunt at redhat.com
Tue Feb 28 14:55:50 UTC 2017


thanks!

On Tue, 2017-02-28 at 15:44 +0100, Victor Toso wrote:
> From: Victor Toso <me at victortoso.com>
> 
> Ack with this
> 
> Signed-off-by: Victor Toso <victortoso at redhat.com>
> ---
>  src/spice-widget.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/spice-widget.c b/src/spice-widget.c
> index 1e69129..9a7ea56 100644
> --- a/src/spice-widget.c
> +++ b/src/spice-widget.c
> @@ -1074,7 +1074,7 @@ static gboolean do_pointer_grab(SpiceDisplay
> *display)
>      }
>  
>  end:
> -    g_object_unref(blank);
> +    g_clear_object(&blank);
>      return grab_successful;
>  }
>  


More information about the Spice-devel mailing list