aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorj-n-f <j-n-f@users.noreply.github.com>2020-07-05 18:23:38 -0400
committerSimon Ser <contact@emersion.fr>2020-07-06 00:40:14 +0200
commitb61a98c417efe360cfeedd252b2690a70fecb15a (patch)
tree7e1da76719a33f19a1f1fe9513bb0aa3fa642fb8
parentb2bd536308ddac7fb9f163be8d7788f54f9ee20c (diff)
examples: fix improper use of `free`
Closes #2303
-rw-r--r--examples/idle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/idle.c b/examples/idle.c
index 0f3a7f80..6faa1d7d 100644
--- a/examples/idle.c
+++ b/examples/idle.c
@@ -127,7 +127,7 @@ int main(int argc, char *argv[]) {
wl_registry_add_listener(registry, &registry_listener, NULL);
wl_display_dispatch(display);
wl_display_roundtrip(display);
- free(registry);
+ wl_registry_destroy(registry);
if (idle_manager == NULL) {
fprintf(stderr, "display doesn't support idle protocol\n");