From 9a1a16f3d42b2f48b26eb3daef3a195fc0f2a13e Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 11 Aug 2002 13:32:23 +0200 Subject: Consistently using malloc/free and new/delete --- vdr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vdr.c') diff --git a/vdr.c b/vdr.c index fa7429c1..286b0bb2 100644 --- a/vdr.c +++ b/vdr.c @@ -22,7 +22,7 @@ * * The project's page is at http://www.cadsoft.de/people/kls/vdr * - * $Id: vdr.c 1.118 2002/08/04 09:56:30 kls Exp $ + * $Id: vdr.c 1.119 2002/08/11 11:32:15 kls Exp $ */ #include @@ -585,7 +585,7 @@ int main(int argc, char *argv[]) asprintf(&buf, tr("Recording in %d minutes, shut down anyway?"), Delta / 60); if (Interface->Confirm(buf)) ForceShutdown = true; - delete buf; + free(buf); } if (!Next || Delta > Setup.MinEventTimeout * 60 || ForceShutdown) { ForceShutdown = false; @@ -600,7 +600,7 @@ int main(int argc, char *argv[]) asprintf(&cmd, "%s %ld %ld %d \"%s\" %d", Shutdown, Next, Delta, Channel, strescape(File, "\"$"), UserShutdown); isyslog("executing '%s'", cmd); SystemExec(cmd); - delete cmd; + free(cmd); } else if (WatchdogTimeout > 0) { alarm(WatchdogTimeout); -- cgit v1.2.3