1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:27:35 +00:00

Ladybird: Ensure we release CoreFoundation references

Once we are done with our references to some CoreFoundation types, we
must be sure to manually release those references.
This commit is contained in:
Timothy Flynn 2023-08-23 13:00:08 -04:00 committed by Tim Flynn
parent 2d154bf90a
commit 4f563e346d
2 changed files with 4 additions and 0 deletions

View file

@ -860,6 +860,7 @@ static void copy_text_to_clipboard(StringView text)
[image drawInRect:image_rect];
CGContextRestoreGState(context);
CGDataProviderRelease(provider);
CGImageRelease(bitmap_image);
[super drawRect:rect];