src/video/android/SDL_androidwindow.c
changeset 6330 0fa55ca2efdd
parent 6262 47d6b41996e4
child 6651 17ef8a7cab55
     1.1 --- a/src/video/android/SDL_androidwindow.c	Tue Jun 19 12:29:53 2012 -0400
     1.2 +++ b/src/video/android/SDL_androidwindow.c	Tue Jun 19 13:57:42 2012 -0300
     1.3 @@ -35,6 +35,8 @@
     1.4          return -1;
     1.5      }
     1.6      Android_Window = window;
     1.7 +    Android_PauseSem = SDL_CreateSemaphore(0);
     1.8 +    Android_ResumeSem = SDL_CreateSemaphore(0);
     1.9  
    1.10      /* Adjust the window data to match the screen */
    1.11      window->x = 0;
    1.12 @@ -62,6 +64,10 @@
    1.13  {
    1.14      if (window == Android_Window) {
    1.15          Android_Window = NULL;
    1.16 +        if (Android_PauseSem) SDL_DestroySemaphore(Android_PauseSem);
    1.17 +        if (Android_ResumeSem) SDL_DestroySemaphore(Android_ResumeSem);
    1.18 +        Android_PauseSem = NULL;
    1.19 +        Android_ResumeSem = NULL;
    1.20      }
    1.21  }
    1.22