mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 00:00:44 +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
0013b00b64
commit
13033b49b3
@ -2993,6 +2993,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