Fix various null pointer issues detected by Coverity

This commit is contained in:
Richard Stanway
2017-02-25 16:45:45 +01:00
parent 6dd1707752
commit 8b640fae24
10 changed files with 30 additions and 39 deletions

View File

@@ -927,11 +927,6 @@ int obs_reset_video(struct obs_video_info *ovi)
stop_video();
obs_free_video();
if (!ovi) {
obs_free_graphics();
return OBS_VIDEO_SUCCESS;
}
/* align to multiple-of-two and SSE alignment sizes */
ovi->output_width &= 0xFFFFFFFC;
ovi->output_height &= 0xFFFFFFFE;