mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 575142 - qcms_transform_create should use transform_free. r=jmuizellar
This commit is contained in:
parent
cca635c194
commit
fa72189e5f
@ -1229,7 +1229,7 @@ qcms_transform* qcms_transform_create(
|
||||
if (out_type != QCMS_DATA_RGB_8 &&
|
||||
out_type != QCMS_DATA_RGBA_8) {
|
||||
assert(0 && "output type");
|
||||
free(transform);
|
||||
transform_free(transform);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -1259,7 +1259,7 @@ qcms_transform* qcms_transform_create(
|
||||
if (in_type != QCMS_DATA_RGB_8 &&
|
||||
in_type != QCMS_DATA_RGBA_8){
|
||||
assert(0 && "input type");
|
||||
free(transform);
|
||||
transform_free(transform);
|
||||
return NULL;
|
||||
}
|
||||
if (precache) {
|
||||
@ -1331,7 +1331,7 @@ qcms_transform* qcms_transform_create(
|
||||
if (in_type != QCMS_DATA_GRAY_8 &&
|
||||
in_type != QCMS_DATA_GRAYA_8){
|
||||
assert(0 && "input type");
|
||||
free(transform);
|
||||
transform_free(transform);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -1356,6 +1356,8 @@ qcms_transform* qcms_transform_create(
|
||||
}
|
||||
} else {
|
||||
assert(0 && "unexpected colorspace");
|
||||
qcms_transform_release(transform);
|
||||
return NO_MEM_TRANSFORM;
|
||||
}
|
||||
return transform;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user