| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -627,6 +627,7 @@ - (nullable CGImageRef)sd_createWebpImageWithData:(WebPData)webpData colorSpace: | |||
| 627 | 627 | ||
| 628 | 628 | // Decode the WebP image data into a RGBA value array | |
| 629 | 629 | if (WebPDecode(webpData.bytes, webpData.size, &config) != VP8_STATUS_OK) { | |
| 630 | + WebPFree(rgba); | ||
| 630 | 631 | return nil; | |
| 631 | 632 | } | |
| 632 | 633 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -262,10 +262,10 @@ - (void)testWebPDecodeDoesNotTriggerCACopyImage { | |||
| 262 | 262 | XCTAssertEqual(colorspace, NSScreen.mainScreen.colorSpace.CGColorSpace, @"Color space is not screen"); | |
| 263 | 263 | #else | |
| 264 | 264 | XCTAssertEqual(colorspaceName, (__bridge NSString *)kCGColorSpaceSRGB, @"Color space is not sRGB"); | |
| 265 | + #endif | ||
| 265 | 266 | } else { | |
| 266 | 267 | // Fallback on earlier versions | |
| 267 | 268 | } | |
| 268 | - #endif | ||
| 269 | 269 | } | |
| 270 | 270 | ||
| 271 | 271 | - (void)testEncodingSettings { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments