diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-02-06 09:48:08 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-02-06 09:48:08 +0100 |
commit | c4292b81b8f85b8024aea1ce4ce0bb6bc3a83c52 (patch) | |
tree | 52f4ef200e6f3c05b34825b3e44a4fe69b2c6f36 /channels.c | |
parent | ef4ef632d52a3b19fae135731c2779b59d4cea62 (diff) | |
download | vdr-c4292b81b8f85b8024aea1ce4ce0bb6bc3a83c52.tar.gz vdr-c4292b81b8f85b8024aea1ce4ce0bb6bc3a83c52.tar.bz2 |
Fixed several memory leaks that were introduced through the use of cString
Diffstat (limited to 'channels.c')
-rw-r--r-- | channels.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: channels.c 1.34 2005/01/16 13:49:30 kls Exp $ + * $Id: channels.c 1.35 2005/02/06 09:44:53 kls Exp $ */ #include "channels.h" @@ -640,7 +640,7 @@ cString cChannel::ToText(const cChannel *Channel) *q = 0; asprintf(&buffer, "%s:%d:%s:%s:%d:%s:%s:%d:%s:%d:%d:%d:%d\n", FullName, Channel->frequency, *Channel->ParametersToString(), *cSource::ToString(Channel->source), Channel->srate, vpidbuf, apidbuf, Channel->tpid, caidbuf, Channel->sid, Channel->nid, Channel->tid, Channel->rid); } - return buffer; + return cString(buffer, true); } cString cChannel::ToText(void) const |