src/video/windows/SDL_windowswindow.c
changeset 9665 8d24b4bfa3dd
parent 9664 42ab66d97cc1
child 9886 adb374e144d6
equal deleted inserted replaced
9664:42ab66d97cc1 9665:8d24b4bfa3dd
   613 {
   613 {
   614     SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
   614     SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
   615 
   615 
   616     if (data) {
   616     if (data) {
   617         ReleaseDC(data->hwnd, data->hdc);
   617         ReleaseDC(data->hwnd, data->hdc);
   618         ReleaseProp(data->hwnd, TEXT("SDL_WindowData"));
   618         RemoveProp(data->hwnd, TEXT("SDL_WindowData"));
   619         if (data->created) {
   619         if (data->created) {
   620             DestroyWindow(data->hwnd);
   620             DestroyWindow(data->hwnd);
   621         } else {
   621         } else {
   622             /* Restore any original event handler... */
   622             /* Restore any original event handler... */
   623             if (data->wndproc != NULL) {
   623             if (data->wndproc != NULL) {