summaryrefslogtreecommitdiff
path: root/recording.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 /recording.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 'recording.c')
-rw-r--r--recording.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/recording.c b/recording.c
index 7ba93b32..c6460f27 100644
--- a/recording.c
+++ b/recording.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: recording.c 1.94 2004/12/26 11:55:24 kls Exp $
+ * $Id: recording.c 1.95 2005/02/06 09:46:31 kls Exp $
*/
#include "recording.h"
@@ -719,7 +719,7 @@ cString cMark::ToText(void)
{
char *buffer;
asprintf(&buffer, "%s%s%s\n", *IndexToHMSF(position, true), comment ? " " : "", comment ? comment : "");
- return buffer;
+ return cString(buffer, true);
}
bool cMark::Parse(const char *s)