mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
Fix memory leak
This commit is contained in:
parent
820800a5ab
commit
3fc977d7da
1 changed files with 1 additions and 0 deletions
|
|
@ -300,6 +300,7 @@ static struct wl_resource *create_offer(struct wlr_data_control_device_v1 *devic
|
||||||
struct wl_resource *resource = wl_resource_create(client,
|
struct wl_resource *resource = wl_resource_create(client,
|
||||||
&zwlr_data_control_offer_v1_interface, version, 0);
|
&zwlr_data_control_offer_v1_interface, version, 0);
|
||||||
if (resource == NULL) {
|
if (resource == NULL) {
|
||||||
|
free(offer);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue