compositor: fix destroy_frame_callback()
Pass the correct pointer to free(). This is just a cosmetic change, because 'resource' happens to be the first member in wlsc_frame_callback. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
This commit is contained in:
committed by
Kristian Høgsberg
parent
09d65d0e64
commit
8c19645e69
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user