On Fri, Jul 31, 2015 at 2:02 AM, Elvis Lee <[email protected]> wrote:

>
> +               proxy_destroyed = !!(proxy->flags &
> WL_PROXY_FLAG_DESTROYED);
> +
> +               proxy->refcount--;
> +               if (proxy_destroyed && !proxy->refcount)
> +                       free(proxy);
>

It seems like you don't need the temporary, and could put the test of the
flag directly in the if statement?
_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to