mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 23:35:38 +00:00
x11: Fix memory leak in X11_CreatePixmapCursor()
This commit is contained in:
parent
f124259e59
commit
eb3f1462b8
|
@ -195,6 +195,8 @@ X11_CreatePixmapCursor(SDL_Surface * surface, int hot_x, int hot_y)
|
||||||
&fg, &bg, hot_x, hot_y);
|
&fg, &bg, hot_x, hot_y);
|
||||||
X11_XFreePixmap(display, data_pixmap);
|
X11_XFreePixmap(display, data_pixmap);
|
||||||
X11_XFreePixmap(display, mask_pixmap);
|
X11_XFreePixmap(display, mask_pixmap);
|
||||||
|
SDL_free(data_bits);
|
||||||
|
SDL_free(mask_bits);
|
||||||
|
|
||||||
return cursor;
|
return cursor;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue