diff --git a/src/video/x11/SDL_x11sym.h b/src/video/x11/SDL_x11sym.h index cacec1e654..07f2b4539f 100644 --- a/src/video/x11/SDL_x11sym.h +++ b/src/video/x11/SDL_x11sym.h @@ -105,7 +105,6 @@ SDL_X11_SYM(Status,XInitThreads,(void)) SDL_X11_SYM(int,XPeekEvent,(Display* a,XEvent* b)) SDL_X11_SYM(int,XPending,(Display* a)) SDL_X11_SYM(XImage*,XGetImage,(Display* a,Drawable b,int c, int d,unsigned int e,unsigned int f,unsigned long g,int h)) -SDL_X11_SYM(void,XDestroyImage,(XImage *a)) SDL_X11_SYM(int,XPutImage,(Display* a,Drawable b,GC c,XImage* d,int e,int f,int g,int h,unsigned int i,unsigned int j)) SDL_X11_SYM(int,XQueryKeymap,(Display* a,char b[32])) SDL_X11_SYM(Bool,XQueryPointer,(Display* a,Window b,Window* c,Window* d,int* e,int* f,int* g,int* h,unsigned int* i)) diff --git a/src/video/x11/SDL_x11toolkit.c b/src/video/x11/SDL_x11toolkit.c index 71d1b19def..1e1d50e663 100644 --- a/src/video/x11/SDL_x11toolkit.c +++ b/src/video/x11/SDL_x11toolkit.c @@ -981,10 +981,10 @@ static void X11Toolkit_DrawWindow(SDL_ToolkitWindowX11 *data) { put_image = X11_XCreateImage(data->display, data->visual, data->vi.depth, ZPixmap, 0, put_surface->pixels, data->window_width, data->window_height, 32, put_surface->pitch); X11_XPutImage(data->display, data->window, data->ctx, put_image, 0, 0, 0, 0, data->window_width, data->window_height); - X11_XDestroyImage(pixmap_image); + XDestroyImage(pixmap_image); /* Needed because XDestroyImage results in a double-free otherwise */ put_image->data = NULL; - X11_XDestroyImage(put_image); + XDestroyImage(put_image); SDL_DestroySurface(pixmap_surface); SDL_DestroySurface(put_surface); }