summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>2014-08-08 09:47:27 +0900
committerNobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>2014-08-12 22:16:47 +0900
commitefa8e8b714e2c5e97b0e084402d1fedfd4888806 (patch)
tree7409682f2cd69784c9ce41481a8374babc58880e
parent8049908e734cf40fb11519f3c820b45041db4fe1 (diff)
downloadwayland-ivi-extension-efa8e8b714e2c5e97b0e084402d1fedfd4888806.tar.gz
ivi-controller: Fix NULL deref.
Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
-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;
}
}