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/94c622a9175f
branches:  trunk
changeset: 808882:94c622a9175f
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 717173eff909 -r 94c622a9175f 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