From: Tobias Markus Date: Thu, 30 Jan 2014 17:23:28 +0000 (+0100) Subject: Adding another null check to prevent another crash X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=8e298f965a827bcdcbce8b7f00972d2b19aa3170;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 f991ee400..d2810234b 100644 --- a/src/video/video_systems.cpp +++ b/src/video/video_systems.cpp @@ -153,7 +153,7 @@ VideoSystem::new_surface_data(const Surface &surface) void VideoSystem::free_surface_data(SurfaceData* surface_data) { - if(surface_data == null) + if(surface_data == NULL) return; delete surface_data;