Re: [PATCH wayland] client: Check reference count only for destroyed proxies

2013-03-17 Thread Kristian Høgsberg
On Thu, Mar 07, 2013 at 11:32:39PM +0100, Jonas Ådahl wrote: > The llvm static analyzer tool reported "Use of memory after it is freed" > in dispatch_event() because the proxy is used after being freed if the > reference count reaches zero without the destroyed flag being set. This > would never ha

[PATCH wayland] client: Check reference count only for destroyed proxies

2013-03-07 Thread Jonas Ådahl
The llvm static analyzer tool reported "Use of memory after it is freed" in dispatch_event() because the proxy is used after being freed if the reference count reaches zero without the destroyed flag being set. This would never happen in practice because the owner of the proxy object always holds a