aboutsummaryrefslogtreecommitdiff
path: root/xwayland/selection/incoming.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-26 17:37:27 +0200
committerGitHub <noreply@github.com>2018-04-26 17:37:27 +0200
commit979b1b22d598a8ff1d32903c96e049211f6a0285 (patch)
treeb86cf98ac2a7938c04da80f80d3be1363ae71ef6 /xwayland/selection/incoming.c
parent93ebd33aa8458401cc70d6146556b67839882276 (diff)
parentc119c43b4838fc63273ac40ba7f29b412a62c2a4 (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.c1
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;