Browse Source

Fixed memory leak looking up pen tool names

Sam Lantinga 1 năm trước cách đây
mục cha
commit
8ba8cca69b
1 tập tin đã thay đổi với 1 bổ sung và 0 xóa
  1. 1 0
      src/video/x11/SDL_x11pen.c

+ 1 - 0
src/video/x11/SDL_x11pen.c

@@ -85,6 +85,7 @@ static bool X11_XInput2PenIsEraser(SDL_VideoDevice *_this, int deviceid, char *d
                     result = true;
                 }
                 X11_XFree(tooltype_name_info);
+                X11_XFree(tooltype_name);
 
                 return result;
             }