[PDF] Fix bugs preventing gm from running with PDF support.

Fix copy-paste ref counting bug.
Change NOT_IMPLEMENTED macro to only assert in debug mode.

Review URL: http://codereview.appspot.com/4080048

git-svn-id: http://skia.googlecode.com/svn/trunk@748 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/pdf/SkPDFImage.cpp b/src/pdf/SkPDFImage.cpp
index 6c35f5a..f3f7592 100644
--- a/src/pdf/SkPDFImage.cpp
+++ b/src/pdf/SkPDFImage.cpp
@@ -228,8 +228,8 @@
     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.