|
@@ -64,7 +64,7 @@ CGPDFDocumentRef CGPDFDocumentCreateUsingUrl(CFURLRef theURL, NSString *password
|
|
|
|
|
|
if (CGPDFDocumentIsUnlocked(thePDFDocRef) == FALSE) // Cleanup unlock failure
|
|
|
{
|
|
|
- CGPDFDocumentRelease(thePDFDocRef), thePDFDocRef = NULL;
|
|
|
+ (void)(CGPDFDocumentRelease(thePDFDocRef)), thePDFDocRef = NULL;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -118,7 +118,7 @@ CGPDFDocumentRef CGPDFDocumentCreateUsingData(CGDataProviderRef dataProvider, NS
|
|
|
|
|
|
if (CGPDFDocumentIsUnlocked(thePDFDocRef) == FALSE) // Cleanup unlock failure
|
|
|
{
|
|
|
- CGPDFDocumentRelease(thePDFDocRef), thePDFDocRef = NULL;
|
|
|
+ (void)(CGPDFDocumentRelease(thePDFDocRef)), thePDFDocRef = NULL;
|
|
|
}
|
|
|
}
|
|
|
}
|