nooo a memory leak
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1673
This commit is contained in:
parent
5ff76622ca
commit
4e169beaa3
1 changed files with 2 additions and 1 deletions
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: pic.cpp,v 1.17 2004-02-07 18:35:17 harekiet Exp $ */
|
||||
/* $Id: pic.cpp,v 1.18 2004-02-08 13:04:34 harekiet Exp $ */
|
||||
|
||||
#include <list>
|
||||
|
||||
|
@ -393,6 +393,7 @@ void TIMER_DelTickHandler(TIMER_TickHandler handler) {
|
|||
while (ticker) {
|
||||
if (ticker->handler==handler) {
|
||||
*where=ticker->next;
|
||||
delete ticker;
|
||||
return;
|
||||
}
|
||||
where=&ticker->next;
|
||||
|
|
Loading…
Add table
Reference in a new issue