mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-19 01:45:32 +00:00
FS-10526: [freeswitch-core] Uninitialized variable in switch_img_fit when using SWITCH_FIT_SIZE_AND_SCALE #resolve
This commit is contained in:
parent
35542d33ee
commit
babb7ce12c
@ -2381,6 +2381,7 @@ SWITCH_DECLARE(switch_status_t) switch_img_fit(switch_image_t **srcP, int width,
|
||||
|
||||
if (fit == SWITCH_FIT_SIZE_AND_SCALE) {
|
||||
src = *srcP;
|
||||
tmp = NULL;
|
||||
switch_img_scale(src, &tmp, width, height);
|
||||
switch_img_free(&src);
|
||||
*srcP = tmp;
|
||||
|
Loading…
x
Reference in New Issue
Block a user