mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Small fixes to unrechable code, possibly overflows, using NULL pointers
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user