summaryrefslogtreecommitdiff
path: root/timers.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-02-06 09:48:08 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2005-02-06 09:48:08 +0100
commitc4292b81b8f85b8024aea1ce4ce0bb6bc3a83c52 (patch)
tree52f4ef200e6f3c05b34825b3e44a4fe69b2c6f36 /timers.c
parentef4ef632d52a3b19fae135731c2779b59d4cea62 (diff)
downloadvdr-c4292b81b8f85b8024aea1ce4ce0bb6bc3a83c52.tar.gz
vdr-c4292b81b8f85b8024aea1ce4ce0bb6bc3a83c52.tar.bz2
Fixed several memory leaks that were introduced through the use of cString
Diffstat (limited to 'timers.c')
-rw-r--r--timers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/timers.c b/timers.c
index 96a2cc91..9edc6c3b 100644
--- a/timers.c
+++ b/timers.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: timers.c 1.21 2004/12/26 12:35:33 kls Exp $
+ * $Id: timers.c 1.22 2005/02/06 09:45:52 kls Exp $
*/
#include "timers.h"
@@ -112,7 +112,7 @@ cString cTimer::ToText(bool UseChannelID)
asprintf(&buffer, "%d:%s:%s:%04d:%04d:%d:%d:%s:%s\n", flags, UseChannelID ? *Channel()->GetChannelID().ToString() : *itoa(Channel()->Number()), *PrintDay(day, firstday), start, stop, priority, lifetime, file, summary ? summary : "");
strreplace(summary, '|', '\n');
strreplace(file, '|', ':');
- return buffer;
+ return cString(buffer, true);
}
int cTimer::TimeToInt(int t)