[PATCH wayland] wayland-client : Fix queue_release not to call proxy_destroy

Bill Spitzak spitzak at gmail.com
Fri Jul 31 14:22:03 PDT 2015


On Fri, Jul 31, 2015 at 2:02 AM, Elvis Lee <kwangwoong.lee at lge.com> 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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20150731/3061d197/attachment.html>


More information about the wayland-devel mailing list