[PATCH 3/4] compositor: fix destroy_frame_callback()

Kristian Høgsberg krh at bitplanet.net
Tue Nov 15 06:06:03 PST 2011


On Tue, Nov 15, 2011 at 4:45 AM, Pekka Paalanen <ppaalanen at gmail.com> wrote:
> Pass the correct pointer to free().
>
> This is just a cosmetic change, because 'resource' happens to be the
> first member in wlsc_frame_callback.

Right, I guess that's a little clearer.

Kristian

> Signed-off-by: Pekka Paalanen <ppaalanen at gmail.com>
> ---
>  compositor/compositor.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/compositor/compositor.c b/compositor/compositor.c
> index 27d9834..923c93e 100644
> --- a/compositor/compositor.c
> +++ b/compositor/compositor.c
> @@ -1133,7 +1133,7 @@ destroy_frame_callback(struct wl_resource *resource)
>        struct wlsc_frame_callback *cb = resource->data;
>
>        wl_list_remove(&cb->link);
> -       free(resource);
> +       free(cb);
>  }
>
>  static void
> --
> 1.7.3.4
>
>


More information about the wayland-devel mailing list