Closed auriamg closed 10 years ago
Author: nathanm32292394 I generated Valgrind logs using: valgrind --leak-check=full --log-file=valgrind7.log ./supertuxkart valgrind --leak-check=full --log-file=valgrind8.log ./supertuxkart
Author: nathanm32292394 This patch is for the supertuxkart.src package of openSUSE Linux 11.3. I downloaded this package from the "openSUSE BuildService - Games" repository located at http://download.opensuse.org/repositories/games/openSUSE_11.3/.
Author: auria Thanks for the patch, it was applied in SVN
I found a small leak in the GamePadDevice class using Valgrind. It was creating 3 new objects, namely m_prevAxisDirections, m_prevAxisValue, and m_axis_ok, but was only deleting 2 of them. The attached patch solves this by assuring that m_axis_ok is deleted.