Fixed bug in XPS factory declaration
authorMatthew Leibowitz <mattleibow@live.com>
Sun, 7 May 2017 15:35:46 +0000 (17:35 +0200)
committerMatthew Leibowitz <mattleibow@live.com>
Sun, 7 May 2017 15:35:46 +0000 (17:35 +0200)
src/xps/SkXPSDocument.cpp

index 23aa695..c93a995 100644 (file)
@@ -62,7 +62,7 @@ void SkXPSDocument::onAbort() {}
 
 sk_sp<SkDocument> SkDocument::MakeXPS(SkWStream* stream,
                                       SkScalar dpi) {
-    SkTScopedComPtr<IXpsOMObjectFactory> factory;
+    IXpsOMObjectFactory* factory = nullptr;
     auto hr = CoCreateInstance(
         CLSID_XpsOMObjectFactory,
         nullptr,