From: Tobias Markus Date: Thu, 30 Jan 2014 17:22:49 +0000 (+0100) Subject: Adding another null check to prevent another crash X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=5b38374379c4bb6712c201aade8fed9eef4e31ea;p=supertux.git Adding another null check to prevent another crash --- 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; }