projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Adding another null check to prevent another crash
[supertux.git]
/
src
/
video
/
video_systems.cpp
diff --git
a/src/video/video_systems.cpp
b/src/video/video_systems.cpp
index
27fd417
..
f991ee4
100644
(file)
--- 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;
}