Fix possible memory leaks

This commit is contained in:
Tobias Blomberg 2022-03-17 23:21:48 +01:00
parent 8c50d40f93
commit 6ca35154ac
4 changed files with 12 additions and 2 deletions

View File

@ -116,6 +116,7 @@ class AudioDeviceAlsa::AlsaWatch : public sigc::trackable
~AlsaWatch() ~AlsaWatch()
{ {
activity.clear();
std::list<FdWatch*>::const_iterator cii; std::list<FdWatch*>::const_iterator cii;
for(cii = watch_list.begin(); cii != watch_list.end(); ++cii) for(cii = watch_list.begin(); cii != watch_list.end(); ++cii)
{ {

View File

@ -10,7 +10,7 @@ class documentation.
\verbatim \verbatim
Async - A library for programming event driven applications Async - A library for programming event driven applications
Copyright (C) 2003-2015 Tobias Blomberg Copyright (C) 2003-2022 Tobias Blomberg
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@ -127,6 +127,7 @@ Timer::Timer(int timeout_ms, Type type, bool enabled)
Timer::~Timer(void) Timer::~Timer(void)
{ {
expired.clear();
setEnable(false); setEnable(false);
} /* Timer::~Timer */ } /* Timer::~Timer */

View File

@ -110,3 +110,11 @@
fun:Tcl_NewStringObj fun:Tcl_NewStringObj
... ...
} }
{
TclCompileExpr
Memcheck:Leak
match-leak-kinds: possible
...
fun:TclThreadAllocObj
...
}

View File

@ -11,7 +11,7 @@ LIBECHOLIB=1.3.3.99.0
LIBASYNC=1.6.99.17 LIBASYNC=1.6.99.17
# SvxLink versions # SvxLink versions
SVXLINK=1.7.99.58 SVXLINK=1.7.99.59
MODULE_HELP=1.0.0 MODULE_HELP=1.0.0
MODULE_PARROT=1.1.1 MODULE_PARROT=1.1.1
MODULE_ECHO_LINK=1.5.99.2 MODULE_ECHO_LINK=1.5.99.2