From ca43cfebcad7fef14b954e9b300e5bf818bfe4c5 Mon Sep 17 00:00:00 2001 From: Matt Holgate Date: Thu, 26 Jun 2014 11:11:52 +0100 Subject: Fix various Xcode analyzer warnings. Most were pretty harmless, and were addressed by renaming functions to match the Core Foundation naming conventions, but there was one actual memory leak, and some potential uses of uninitialised data. --- platform/ios/Classes/MuPrintPageRenderer.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'platform/ios/Classes/MuPrintPageRenderer.m') diff --git a/platform/ios/Classes/MuPrintPageRenderer.m b/platform/ios/Classes/MuPrintPageRenderer.m index ba452d6b..9a396df7 100644 --- a/platform/ios/Classes/MuPrintPageRenderer.m +++ b/platform/ios/Classes/MuPrintPageRenderer.m @@ -168,11 +168,11 @@ static void renderPage(fz_document *doc, fz_page *page, fz_pixmap *pix, fz_matri if (!pix) goto exit; - dataref = wrapPixmap(pix); + dataref = CreateWrappedPixmap(pix); if (dataref == NULL) goto exit; - img = newCGImageWithPixmap(pix, dataref); + img = CreateCGImageWithPixmap(pix, dataref); if (img == NULL) goto exit; -- cgit v1.2.3