diff --git a/NKDBarcodeOffscreenView.m b/NKDBarcodeOffscreenView.m index fc7e792..2b6bd5c 100644 --- a/NKDBarcodeOffscreenView.m +++ b/NKDBarcodeOffscreenView.m @@ -240,6 +240,7 @@ - (NSData *)pdfInsideRect:(CGRect)rect { CGPDFContextEndPage(context); CGPDFContextClose(context); CGDataConsumerRelease(consumer); + CGContextRelease(context); return data; }