summaryrefslogtreecommitdiff
path: root/pdf
diff options
context:
space:
mode:
Diffstat (limited to 'pdf')
-rw-r--r--pdf/SkPDFDevice.cpp2
-rw-r--r--pdf/SkPDFImage.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/pdf/SkPDFDevice.cpp b/pdf/SkPDFDevice.cpp
index d3a15a8b..3ca74098 100644
--- a/pdf/SkPDFDevice.cpp
+++ b/pdf/SkPDFDevice.cpp
@@ -36,7 +36,7 @@
do { \
if (condition) { \
fprintf(stderr, "NOT_IMPLEMENTED: " #condition "\n"); \
- SkASSERT(!assert); \
+ SkDEBUGCODE(SkASSERT(!assert);) \
} \
} while(0)
diff --git a/pdf/SkPDFImage.cpp b/pdf/SkPDFImage.cpp
index 6c35f5a6..f3f75925 100644
--- a/pdf/SkPDFImage.cpp
+++ b/pdf/SkPDFImage.cpp
@@ -228,8 +228,8 @@ SkPDFArray* makeIndexedColorSpace(SkColorTable* table) {
rgbName->unref(); // SkRefPtr and new both took a reference.
result->append(rgbName.get());
- rgbName->unref(); // SkRefPtr and new both took a reference.
SkRefPtr<SkPDFInt> countValue = new SkPDFInt(table->count() - 1);
+ countValue->unref(); // SkRefPtr and new both took a reference.
result->append(countValue.get());
// Potentially, this could be represented in fewer bytes with a stream.