Merge branch 'master' of https://code.google.com/p/supertux
[supertux.git] / src / video / video_systems.cpp
index 27fd417..d281023 100644 (file)
@@ -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;
 }