]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - ppdc/ppdc-message.cxx
Merge changes from CUPS 1.5b1-r9798.
[thirdparty/cups.git] / ppdc / ppdc-message.cxx
index e0285d24f3bb8a0361dabd7ed072fc5d09bd7699..11e5e3eaa7c0dfd4c658f0f4a94b70f78b52af16 100644 (file)
@@ -3,7 +3,7 @@
 //
 //   Shared message class for the CUPS PPD Compiler.
 //
-//   Copyright 2007 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
@@ -22,7 +22,7 @@
 // Include necessary headers...
 //
 
-#include "ppdc.h"
+#include "ppdc-private.h"
 
 
 //
@@ -33,6 +33,8 @@ ppdcMessage::ppdcMessage(const char *i,       // I - ID
                          const char *s)        // I - Text
   : ppdcShared()
 {
+  PPDC_NEW;
+
   id     = new ppdcString(i);
   string = new ppdcString(s);
 }
@@ -44,8 +46,10 @@ ppdcMessage::ppdcMessage(const char *i,      // I - ID
 
 ppdcMessage::~ppdcMessage()
 {
-  delete id;
-  delete string;
+  PPDC_DELETE;
+
+  id->release();
+  string->release();
 }