compositor: Fix remaining double free()s
Previous commit didn't catch all double free()s, hopefully this one does.
This commit is contained in:
@@ -2512,7 +2512,6 @@ weston_compositor_stack_plane(struct weston_compositor *ec,
|
|||||||
static void unbind_resource(struct wl_resource *resource)
|
static void unbind_resource(struct wl_resource *resource)
|
||||||
{
|
{
|
||||||
wl_list_remove(wl_resource_get_link(resource));
|
wl_list_remove(wl_resource_get_link(resource));
|
||||||
free(resource);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
@@ -555,7 +555,6 @@ create_data_source(struct wl_client *client,
|
|||||||
static void unbind_data_device(struct wl_resource *resource)
|
static void unbind_data_device(struct wl_resource *resource)
|
||||||
{
|
{
|
||||||
wl_list_remove(wl_resource_get_link(resource));
|
wl_list_remove(wl_resource_get_link(resource));
|
||||||
free(resource);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
@@ -1006,7 +1006,6 @@ static void
|
|||||||
unbind_resource(struct wl_resource *resource)
|
unbind_resource(struct wl_resource *resource)
|
||||||
{
|
{
|
||||||
wl_list_remove(wl_resource_get_link(resource));
|
wl_list_remove(wl_resource_get_link(resource));
|
||||||
free(resource);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@@ -3614,7 +3613,6 @@ unbind_desktop_shell(struct wl_resource *resource)
|
|||||||
|
|
||||||
shell->child.desktop_shell = NULL;
|
shell->child.desktop_shell = NULL;
|
||||||
shell->prepare_event_sent = false;
|
shell->prepare_event_sent = false;
|
||||||
free(resource);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@@ -3693,7 +3691,6 @@ unbind_screensaver(struct wl_resource *resource)
|
|||||||
struct desktop_shell *shell = wl_resource_get_user_data(resource);
|
struct desktop_shell *shell = wl_resource_get_user_data(resource);
|
||||||
|
|
||||||
shell->screensaver.binding = NULL;
|
shell->screensaver.binding = NULL;
|
||||||
free(resource);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@@ -3916,7 +3913,6 @@ unbind_input_panel(struct wl_resource *resource)
|
|||||||
struct desktop_shell *shell = wl_resource_get_user_data(resource);
|
struct desktop_shell *shell = wl_resource_get_user_data(resource);
|
||||||
|
|
||||||
shell->input_panel.binding = NULL;
|
shell->input_panel.binding = NULL;
|
||||||
free(resource);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
Reference in New Issue
Block a user