diff options
author | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2009-03-25 00:42:10 +0000 |
---|---|---|
committer | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2009-03-25 00:42:10 +0000 |
commit | 94da7e344cb567db8e531e263f5f4ede0f989162 (patch) | |
tree | 3e7416535d61e025fde6f3b6bf965930f70301b5 /ppdc/ppdc-array.cxx | |
parent | 238c38326574f7793dc1deda72f6aff208d791dc (diff) | |
download | cups-94da7e344cb567db8e531e263f5f4ede0f989162.tar.gz |
Merge changes from CUPS 1.4svn-r8469.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@1338 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'ppdc/ppdc-array.cxx')
-rw-r--r-- | ppdc/ppdc-array.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ppdc/ppdc-array.cxx b/ppdc/ppdc-array.cxx index 41b0dcb5b..30bd48319 100644 --- a/ppdc/ppdc-array.cxx +++ b/ppdc/ppdc-array.cxx @@ -3,7 +3,7 @@ // // Array 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 @@ -34,7 +34,10 @@ // ppdcArray::ppdcArray(ppdcArray *a) + : ppdcShared() { + PPDC_NEW; + if (a) { count = a->count; @@ -70,6 +73,8 @@ ppdcArray::ppdcArray(ppdcArray *a) ppdcArray::~ppdcArray() { + PPDC_DELETE; + for (int i = 0; i < count; i ++) data[i]->release(); @@ -99,7 +104,6 @@ ppdcArray::add(ppdcShared *d) data = temp; } - d->retain(); data[count++] = d; } |