Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/groff/src/utils/hpftodit The opposite of new[] is d...



details:   https://anonhg.NetBSD.org/src/rev/4fbe71bfd0f0
branches:  trunk
changeset: 338740:4fbe71bfd0f0
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sat Jun 06 14:40:29 2015 +0000

description:
The opposite of new[] is delete[], not delete.

diffstat:

 gnu/dist/groff/src/utils/hpftodit/hpftodit.cpp |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 83ffc960cee5 -r 4fbe71bfd0f0 gnu/dist/groff/src/utils/hpftodit/hpftodit.cpp
--- a/gnu/dist/groff/src/utils/hpftodit/hpftodit.cpp    Sat Jun 06 14:00:52 2015 +0000
+++ b/gnu/dist/groff/src/utils/hpftodit/hpftodit.cpp    Sat Jun 06 14:40:29 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hpftodit.cpp,v 1.5 2006/02/06 18:25:48 wiz Exp $       */
+/*     $NetBSD: hpftodit.cpp,v 1.6 2015/06/06 14:40:29 joerg Exp $     */
 
 // -*- C++ -*-
 /* Copyright (C) 1994, 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
@@ -577,7 +577,7 @@
     ;
   *(p + 1) = '\0';
   printf("# %s\n", font_name);
-  delete font_name;
+  delete[] font_name;
 }
 
 static void



Home | Main Index | Thread Index | Old Index