Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewed-by: Marek Chalupa <mchqwerty@gmail.com>
} else {
weston_log("transfer complete\n");
close(wm->data_source_fd);
- free(reply);
}
+
+ free(reply);
}
struct x11_data_source {
}
source = malloc(sizeof *source);
- if (source == NULL)
+ if (source == NULL) {
+ free(reply);
return;
+ }
wl_signal_init(&source->base.destroy_signal);
source->base.accept = data_source_accept;
if (reply->type == wm->atom.incr) {
dump_property(wm, wm->atom.wl_selection, reply);
wm->incr = 1;
- free(reply);
} else {
dump_property(wm, wm->atom.wl_selection, reply);
wm->incr = 0;
weston_wm_write_property(wm, reply);
}
+
+ free(reply);
}
static void