src/video/x11/SDL_x11window.c
changeset 6562 c52863165594
parent 6541 be103236441d
child 6568 1a6b0ae81937
equal deleted inserted replaced
6560:3c48e9d0ce2e 6562:c52863165594
   716             }
   716             }
   717             XChangeProperty(display, data->xwindow, _NET_WM_ICON, XA_CARDINAL,
   717             XChangeProperty(display, data->xwindow, _NET_WM_ICON, XA_CARDINAL,
   718                             32, PropModeReplace, (unsigned char *) propdata,
   718                             32, PropModeReplace, (unsigned char *) propdata,
   719                             propsize);
   719                             propsize);
   720         }
   720         }
       
   721         SDL_free(propdata);
   721         SDL_FreeSurface(surface);
   722         SDL_FreeSurface(surface);
   722     } else {
   723     } else {
   723         XDeleteProperty(display, data->xwindow, _NET_WM_ICON);
   724         XDeleteProperty(display, data->xwindow, _NET_WM_ICON);
   724     }
   725     }
   725     XFlush(display);
   726     XFlush(display);