diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-06-27 17:47:41 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-06-27 17:47:41 +1000 |
commit | 8773ed39701748ba5500b4698d028795aa6e812e (patch) | |
tree | 171f771887ad7bba4cb454031451ae37ebdbae13 /include/sway/tree | |
parent | be86d3aba602fef7b51fafa8a6e7a39d1e49817f (diff) | |
download | sway-8773ed39701748ba5500b4698d028795aa6e812e.tar.xz |
Fix memleak in container_get_box
Rather than allocate a structure and expect callers to free it, take a
pointer to an existing struct as an argument.
This function is no longer called anywhere though.
Diffstat (limited to 'include/sway/tree')
-rw-r--r-- | include/sway/tree/container.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h index 7e78cbef..728daa84 100644 --- a/include/sway/tree/container.h +++ b/include/sway/tree/container.h @@ -295,6 +295,6 @@ bool container_is_floating(struct sway_container *container); /** * Get a container's box in layout coordinates. */ -struct wlr_box *container_get_box(struct sway_container *container); +void container_get_box(struct sway_container *container, struct wlr_box *box); #endif |