mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
[Bug 914955] Fix build warnings in Moz2D r=bas
This commit is contained in:
parent
1ab858e05b
commit
4a408c479e
@ -99,7 +99,7 @@ SetCacheLimits()
|
||||
return;
|
||||
|
||||
int individualCacheSize = SKIA_TOTAL_CACHE_SIZE / size;
|
||||
for (int i = 0; i < size; i++) {
|
||||
for (uint32_t i = 0; i < size; i++) {
|
||||
targets[i]->SetCacheLimits(SKIA_MAX_CACHE_ITEMS, individualCacheSize);
|
||||
}
|
||||
|
||||
|
@ -167,7 +167,7 @@ DataSourceSurfaceCG::InitFromData(unsigned char *aData,
|
||||
mImage = CreateCGImage(data, data, aSize, aStride, aFormat);
|
||||
|
||||
if (!mImage) {
|
||||
delete data;
|
||||
free(data);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user