Small fixes to unrechable code, possibly overflows, using NULL pointers
This commit is contained in:
parent
8c923fc617
commit
8245db869f
18 changed files with 48 additions and 70 deletions
|
|
@ -413,10 +413,11 @@ void VideoStreamPlaybackWebm::delete_pointers() {
|
|||
|
||||
if (audio_frame)
|
||||
memdelete(audio_frame);
|
||||
for (int i = 0; i < video_frames_capacity; ++i)
|
||||
memdelete(video_frames[i]);
|
||||
if (video_frames)
|
||||
if (video_frames) {
|
||||
for (int i = 0; i < video_frames_capacity; ++i)
|
||||
memdelete(video_frames[i]);
|
||||
memfree(video_frames);
|
||||
}
|
||||
|
||||
if (video)
|
||||
memdelete(video);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue