compositor: Fix remaining double free()s

Previous commit didn't catch all double free()s, hopefully this one does.
This commit is contained in:
Kristian Høgsberg 2013-06-25 11:19:31 -04:00
parent 6c8d778646
commit f00460771e
3 changed files with 0 additions and 6 deletions

View File

@ -2512,7 +2512,6 @@ weston_compositor_stack_plane(struct weston_compositor *ec,
static void unbind_resource(struct wl_resource *resource)
{
wl_list_remove(wl_resource_get_link(resource));
free(resource);
}
static void

View File

@ -555,7 +555,6 @@ create_data_source(struct wl_client *client,
static void unbind_data_device(struct wl_resource *resource)
{
wl_list_remove(wl_resource_get_link(resource));
free(resource);
}
static void

View File

@ -1006,7 +1006,6 @@ static void
unbind_resource(struct wl_resource *resource)
{
wl_list_remove(wl_resource_get_link(resource));
free(resource);
}
static void
@ -3614,7 +3613,6 @@ unbind_desktop_shell(struct wl_resource *resource)
shell->child.desktop_shell = NULL;
shell->prepare_event_sent = false;
free(resource);
}
static void
@ -3693,7 +3691,6 @@ unbind_screensaver(struct wl_resource *resource)
struct desktop_shell *shell = wl_resource_get_user_data(resource);
shell->screensaver.binding = NULL;
free(resource);
}
static void
@ -3916,7 +3913,6 @@ unbind_input_panel(struct wl_resource *resource)
struct desktop_shell *shell = wl_resource_get_user_data(resource);
shell->input_panel.binding = NULL;
free(resource);
}
static void