# HG changeset patch # User Patrice Mandin # Date 1101485604 0 # Node ID 8e20c48a9c1353801a482ca7f74c06d398b820c9 # Parent 475166d13b4446624b54c1b6ffa3ff3577f4372f Restore everything when a function pointer is NULL diff -r 475166d13b44 -r 8e20c48a9c13 test/testdyngl.c --- a/test/testdyngl.c Thu Nov 25 15:47:49 2004 +0000 +++ b/test/testdyngl.c Fri Nov 26 16:13:24 2004 +0000 @@ -106,6 +106,8 @@ printf("Unable to init SDL : %s\n",SDL_GetError()); exit(1); } + + atexit(SDL_Quit); if (SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER,1)<0) {