From c4292b81b8f85b8024aea1ce4ce0bb6bc3a83c52 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 6 Feb 2005 09:48:08 +0100 Subject: Fixed several memory leaks that were introduced through the use of cString --- recording.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'recording.c') 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) -- cgit v1.2.3