summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xweston-ivi-shell/src/ivi-controller.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/weston-ivi-shell/src/ivi-controller.c b/weston-ivi-shell/src/ivi-controller.c
index e050292..3a66d37 100755
--- a/weston-ivi-shell/src/ivi-controller.c
+++ b/weston-ivi-shell/src/ivi-controller.c
@@ -1027,9 +1027,9 @@ controller_screen_destroy(struct wl_client *client,
}
wl_list_remove(&ctrlscrn->link);
+ wl_resource_destroy(ctrlscrn->resource);
free(ctrlscrn);
ctrlscrn = NULL;
- wl_resource_destroy(ctrlscrn->resource);
break;
}
}