]> git.mdlowis.com Git - proto/labwc.git/commit
fix cleanup issues in xdg_surface_new
authorbi4k8 <bi4k8@github>
Thu, 8 Dec 2022 05:27:25 +0000 (05:27 +0000)
committerJohan Malm <johanmalm@users.noreply.github.com>
Thu, 8 Dec 2022 19:24:02 +0000 (19:24 +0000)
commit272221dae23715d7c14cba46ac53819bb0fb2bd6
treeb93d1a6de5deef2fc1a9c7adca0c6b800b96b5d3
parent1ebf5bce9020de974c481cb0c68d7a65d53298ef
fix cleanup issues in xdg_surface_new

`view->surface` had not been set to a non-`NULL` value here, so it
was not yet appropriate to access its `resource` member. instead,
use the resource from the argument xdg_surface.

furthermore, we need to free the newly-allocated `xdg_toplevel_view`
before error return.
src/xdg.c