diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-26 17:37:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-26 17:37:27 +0200 |
commit | 979b1b22d598a8ff1d32903c96e049211f6a0285 (patch) | |
tree | b86cf98ac2a7938c04da80f80d3be1363ae71ef6 /xwayland/selection/incoming.c | |
parent | 93ebd33aa8458401cc70d6146556b67839882276 (diff) | |
parent | c119c43b4838fc63273ac40ba7f29b412a62c2a4 (diff) |
Merge pull request #914 from emersion/misc-segfault-fixes
Misc segfault fixes
Diffstat (limited to 'xwayland/selection/incoming.c')
-rw-r--r-- | xwayland/selection/incoming.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xwayland/selection/incoming.c b/xwayland/selection/incoming.c index 1b596254..5deb2286 100644 --- a/xwayland/selection/incoming.c +++ b/xwayland/selection/incoming.c @@ -309,6 +309,7 @@ static bool source_get_targets(struct wlr_xwm_selection *selection, char **mime_type_ptr = wl_array_add(mime_types, sizeof(*mime_type_ptr)); if (mime_type_ptr == NULL) { + free(mime_type); break; } *mime_type_ptr = mime_type; |