xine-lib: Fix compile. Configure/build may not include headers from the host.
[openwrt/svn-archive/archive.git] / Xorg / driver / xf86-input-tslib / patches / 035-fix-wrong-free.patch
1 --- a/src/tslib.c
2 +++ b/src/tslib.c
3 @@ -372,13 +394,14 @@ xf86TslibInit(InputDriverPtr drv, IDevPtr dev, int flags)
4 s = xf86SetStrOption(pInfo->options, "Device", NULL);
5
6 priv->ts = ts_open(s, 0);
7 - xfree(s);
8
9 if (!priv->ts) {
10 ErrorF("ts_open failed (device=%s)\n",s);
11 xf86DeleteInput(pInfo, 0);
12 + xfree(s);
13 return NULL;
14 }
15 + xfree(s);
16
17 if (ts_config(priv->ts)) {
18 ErrorF("ts_config failed\n");