mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-04 18:27:36 +00:00
FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for switch_core_video.c
This commit is contained in:
parent
cdd3b6f448
commit
42db14e68f
@ -635,7 +635,7 @@ SWITCH_DECLARE(void) switch_img_rotate_copy(switch_image_t *img, switch_image_t
|
||||
if (img->fmt != SWITCH_IMG_FMT_I420) abort();
|
||||
|
||||
if (*new_img != NULL) {
|
||||
if (img->fmt != (*new_img)->fmt || img->d_w != (*new_img)->d_w || img->d_h != (*new_img)->d_w) {
|
||||
if (img->fmt != (*new_img)->fmt || img->d_w != (*new_img)->d_w || img->d_h != (*new_img)->d_h) {
|
||||
switch_img_free(new_img);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user