libweston: Rename weston_surface_destroy() to weston_surface_unref()
Make it obvious that weston_surface has a reference counting happening and destruction of the weston_surface happens when the last weston_surface reference has been accounted for. Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
This commit is contained in:
@@ -192,7 +192,7 @@ weston_curtain_create(struct weston_compositor *compositor,
|
||||
err_view:
|
||||
weston_view_destroy(view);
|
||||
err_surface:
|
||||
weston_surface_destroy(surface);
|
||||
weston_surface_unref(surface);
|
||||
err_curtain:
|
||||
free(curtain);
|
||||
err:
|
||||
@@ -206,7 +206,7 @@ weston_curtain_destroy(struct weston_curtain *curtain)
|
||||
struct weston_surface *surface = curtain->view->surface;
|
||||
|
||||
weston_view_destroy(curtain->view);
|
||||
weston_surface_destroy(surface);
|
||||
weston_surface_unref(surface);
|
||||
weston_buffer_destroy_solid(curtain->buffer_ref);
|
||||
free(curtain);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user