1
1
mirror of https://github.com/swaywm/sway synced 2024-11-23 17:32:40 +01:00
sway/swaynag
Brian Ashworth eb527ac01a swaynag: remove double free of details button
If there are no arguments or invalid arguments given, swaynag will free
`swaynag.details.button_details` under the `cleanup` label in main. It
then called `swaynag_destroy`, which would attempt to free it again.

Since `swaynag.details.button_details` is either freed on line 106 of
main (when there is no detailed message) or added to `swaynag.buttons`
on line 103 of main, there is no reason to manually free it in
`swaynag_destroy`.

Although I cannot reproduce a double free on my system, for some reason,
it should have actually resulted in a double free in all code paths.
2018-12-17 09:21:14 +01:00
..
config.c Implement swaynag -B/--button-no-terminal 2018-11-27 23:34:51 -05:00
main.c
meson.build
render.c
swaynag.1.scd Implement swaynag -B/--button-no-terminal 2018-11-27 23:34:51 -05:00
swaynag.5.scd
swaynag.c swaynag: remove double free of details button 2018-12-17 09:21:14 +01:00
types.c Cleanup list code 2018-12-09 01:15:38 +00:00