Fix double free in video test suite
authorAndreas Schiffler <aschiffler@ferzkopp.net>
Tue, 23 Apr 2013 20:45:49 -0700
changeset 7101 ea2e8eb622e1
parent 7100 ffd910de700b
child 7102 b9fa5a2acbfd
Fix double free in video test suite
test/testautomation_video.c
--- a/test/testautomation_video.c	Tue Apr 23 18:47:44 2013 -0700
+++ b/test/testautomation_video.c	Tue Apr 23 20:45:49 2013 -0700
@@ -1698,7 +1698,7 @@
   if (referenceUserdata != NULL) SDL_free(referenceUserdata);
   if (referenceUserdata2 != NULL) SDL_free(referenceUserdata2);
   if (userdata != NULL) SDL_free(userdata);
-  if (userdata != NULL) SDL_free(userdata);
+  if (userdata2 != NULL) SDL_free(userdata2);
   
   return returnValue;
 }