[Bug 914955] Fix build warnings in Moz2D r=bas

This commit is contained in:
David Zbarsky 2013-09-15 14:23:51 -04:00
parent 1ab858e05b
commit 4a408c479e
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -167,7 +167,7 @@ DataSourceSurfaceCG::InitFromData(unsigned char *aData,
mImage = CreateCGImage(data, data, aSize, aStride, aFormat);
if (!mImage) {
delete data;
free(data);
return false;
}