summaryrefslogtreecommitdiff
path: root/libweston/compositor-rdp.c
diff options
context:
space:
mode:
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>2017-08-16 12:07:14 +0300
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2017-10-04 16:18:06 +0300
commitae6d35db140afc303753972447e0125465997fe7 (patch)
treee3c20ce94583e1a7a683326ea1fb4a435c77fb9e /libweston/compositor-rdp.c
parent01e0068868a2424aa53c5df9849f0aaa43b5bf37 (diff)
libweston: rename weston_output_destroy() to weston_output_release()
'release' is a more appropriate name because the function does not free the underlying memory. The main reason for this is that we need the name weston_output_destroy() for new API that actually will free also the underlying memory. Since the function is only used in backends and external backends are not a thing, this does not cause libweston major version bump, even though it does change the ABI. There is no way external users could have successfully used this function. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Ian Ray <ian.ray@ge.com> Acked-by Daniel Stone <daniels@collabora.com>
Diffstat (limited to 'libweston/compositor-rdp.c')
-rw-r--r--libweston/compositor-rdp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libweston/compositor-rdp.c b/libweston/compositor-rdp.c
index f2fa0f4d..393c1185 100644
--- a/libweston/compositor-rdp.c
+++ b/libweston/compositor-rdp.c
@@ -570,7 +570,7 @@ rdp_output_destroy(struct weston_output *base)
struct rdp_output *output = to_rdp_output(base);
rdp_output_disable(&output->base);
- weston_output_destroy(&output->base);
+ weston_output_release(&output->base);
free(output);
}
@@ -1360,7 +1360,7 @@ rdp_backend_create(struct weston_compositor *compositor,
err_listener:
freerdp_listener_free(b->listener);
err_output:
- weston_output_destroy(&b->output->base);
+ weston_output_release(&b->output->base);
err_compositor:
weston_compositor_shutdown(compositor);
err_free_strings: