diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-05-14 08:00:08 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-14 08:00:08 -0400 |
commit | 4e6cb2b4b2cff21ca1ec751986d8a2e138ea1ed5 (patch) | |
tree | 20e1308a555f14212ac246af0cd559d3a37a5065 /sway/desktop/xdg_shell_v6.c | |
parent | 270c1ee7e507f1d2960920a7f4f0cc70f4e13d26 (diff) | |
parent | 92b8497a0b7cb866dfea2214625c5a58724aa4d6 (diff) | |
download | sway-4e6cb2b4b2cff21ca1ec751986d8a2e138ea1ed5.tar.xz |
Merge pull request #1968 from RyanDwyer/fix-criteria
Fix double free in criteria
Diffstat (limited to 'sway/desktop/xdg_shell_v6.c')
-rw-r--r-- | sway/desktop/xdg_shell_v6.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/desktop/xdg_shell_v6.c b/sway/desktop/xdg_shell_v6.c index e9051b6c..d098c797 100644 --- a/sway/desktop/xdg_shell_v6.c +++ b/sway/desktop/xdg_shell_v6.c @@ -72,7 +72,7 @@ static struct sway_xdg_shell_v6_view *xdg_shell_v6_view_from_view( return (struct sway_xdg_shell_v6_view *)view; } -static const char *get_prop(struct sway_view *view, enum sway_view_prop prop) { +static const char *get_string_prop(struct sway_view *view, enum sway_view_prop prop) { if (xdg_shell_v6_view_from_view(view) == NULL) { return NULL; } @@ -150,7 +150,7 @@ static void destroy(struct sway_view *view) { } static const struct sway_view_impl view_impl = { - .get_prop = get_prop, + .get_string_prop = get_string_prop, .configure = configure, .set_activated = set_activated, .set_fullscreen = set_fullscreen, |