]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - ppdc/ppdc-shared.cxx
Import changes from CUPS 1.4svn-r8704.
[thirdparty/cups.git] / ppdc / ppdc-shared.cxx
index 1a83564b9c405a6a5b3c6a0d1064c3ffc9eabc3a..0c99c0859717afe8d0b942eb204873344643d4ef 100644 (file)
@@ -56,7 +56,16 @@ ppdcShared::release(void)
   DEBUG_printf(("%s: %p release use=%d", class_name(), this, use));
 
   use --;
-  if (!use)
+
+#ifdef DEBUG
+  if (use < 0)
+  {
+    fprintf(stderr, "ERROR: Over-release of %s: %p\n", class_name(), this);
+    abort();
+  }
+#endif /* DEBUG */
+
+  if (use == 0)
     delete this;
 }