On Fri, Mar 04, 2011 at 01:18:54PM +0200, Rami Ylimäki wrote: > Signed-off-by: Rami Ylimäki <rami.ylim...@vincit.fi> > Reviewed-by: Erkki Seppälä <erkki.sepp...@vincit.fi> > --- > src/evdev.c | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/src/evdev.c b/src/evdev.c > index a77be9e..165400f 100644 > --- a/src/evdev.c > +++ b/src/evdev.c > @@ -1839,6 +1839,9 @@ EvdevUnInit(InputDriverPtr drv, InputInfoPtr pInfo, int > flags) > free(pEvdev->rmlvo.variant); > free(pEvdev->rmlvo.options); > memset(&pEvdev->rmlvo, 0, sizeof(pEvdev->rmlvo)); > + /* Release string allocated in EvdevOpenDevice. */ > + free((void *)pEvdev->device); /* (const char *) */
that void typecast to free a const char* worries me a bit. if it's not const enough, we shouldn't declare it as such. Cheers, Peter > + pEvdev->device = NULL; > } > xf86DeleteInput(pInfo, flags); > } > -- > 1.6.3.3 > _______________________________________________ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel