[fixed]linux: inviscursor is never freed

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

[fixed]linux: inviscursor is never freed

Post by hendu »

I recommend adding a XFreeCursor call for it in the clearcursors call.

(btw, the clearcursors contents should clearly be in the destructor, and the destructor called from ~CIrrDeviceLinux, but the fixme says you already know.)
CuteAlien
Admin
Posts: 9809
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: linux: inviscursor is never freed

Post by CuteAlien »

Thanks, I've fixed it in trunk.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: [fixed]linux: inviscursor is never freed

Post by hendu »

Forgot to say, it needs to be inside "if (!Null)", because the creation of it is too.
CuteAlien
Admin
Posts: 9809
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: [fixed]linux: inviscursor is never freed

Post by CuteAlien »

Yeah, my fault. New version checked-in.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply