xfree86: fix bad free configInputDevices
introduced in 93ca526892
.
Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com>
Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
Reviewed-by: Nicolas Peninguy <nico@lostgeeks.org>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
ac2fac24d8
commit
af054db005
|
@ -1459,8 +1459,9 @@ configInputDevices(XF86ConfLayoutPtr layout, serverLayoutPtr servlayoutp)
|
||||||
while (irp) {
|
while (irp) {
|
||||||
indp[count] = xf86AllocateInput();
|
indp[count] = xf86AllocateInput();
|
||||||
if (!configInput(indp[count], irp->iref_inputdev, X_CONFIG)) {
|
if (!configInput(indp[count], irp->iref_inputdev, X_CONFIG)) {
|
||||||
while(count--)
|
do {
|
||||||
free(indp[count]);
|
free(indp[count]);
|
||||||
|
} while(count--);
|
||||||
free(indp);
|
free(indp);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue