From 43e5b5ed0224b65b73eb008a641403194f2788d0 Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Mon, 3 Aug 2009 16:32:46 -0700 Subject: [PATCH] Fixed bug in _subdev_remove when subdev list is empty --- src/tuio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tuio.c b/src/tuio.c index e296ef9..947a681 100644 --- a/src/tuio.c +++ b/src/tuio.c @@ -718,7 +718,7 @@ _subdev_remove(InputInfoPtr pInfo, InputInfoPtr sub_pInfo) found = True; *subdev_list = subdev->next; xfree(subdev); - } else { + } else if (subdev != NULL) { last = subdev; subdev = subdev->next; while (subdev != NULL) { -- 2.11.4.GIT