]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - ppdc/ppdc-string.cxx
Merge changes from CUPS 1.4svn-r8469.
[thirdparty/cups.git] / ppdc / ppdc-string.cxx
index 9ceae937445d1920e58f01f5e37a6c9b2c83f9e6..90a42c447e37ed77c43a6d21473c6353f2bbc0f8 100644 (file)
@@ -3,7 +3,7 @@
 //
 //   Shared string class for the CUPS PPD Compiler.
 //
-//   Copyright 2007-2008 by Apple Inc.
+//   Copyright 2007-2009 by Apple Inc.
 //   Copyright 2002-2005 by Easy Software Products.
 //
 //   These coded instructions, statements, and computer programs are the
@@ -32,6 +32,8 @@
 ppdcString::ppdcString(const char *v)  // I - String
   : ppdcShared()
 {
+  PPDC_NEWVAL(v);
+
   if (v)
   {
     value = new char[strlen(v) + 1];
@@ -48,6 +50,8 @@ ppdcString::ppdcString(const char *v) // I - String
 
 ppdcString::~ppdcString()
 {
+  PPDC_DELETE;
+
   if (value)
     delete[] value;
 }