From 5b38374379c4bb6712c201aade8fed9eef4e31ea Mon Sep 17 00:00:00 2001 From: Tobias Markus Date: Thu, 30 Jan 2014 18:22:49 +0100 Subject: [PATCH] Adding another null check to prevent another crash --- src/video/video_systems.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/video/video_systems.cpp b/src/video/video_systems.cpp index 27fd41760..f991ee400 100644 --- a/src/video/video_systems.cpp +++ b/src/video/video_systems.cpp @@ -153,6 +153,9 @@ VideoSystem::new_surface_data(const Surface &surface) void VideoSystem::free_surface_data(SurfaceData* surface_data) { + if(surface_data == null) + return; + delete surface_data; } -- 2.11.0