8284093: Memory leak: X11SD_DisposeXImage should also free obdata

Reviewed-by: prr, andrew
This commit is contained in:
Zhengyu Gu 2022-04-11 13:36:20 +00:00
parent f4edb59a6e
commit 205cfb8496

View File

@ -1298,6 +1298,7 @@ void X11SD_DisposeXImage(XImage * image) {
#ifdef MITSHM
if (image->obdata != NULL) {
X11SD_DropSharedSegment((XShmSegmentInfo*)image->obdata);
free(image->obdata);
image->obdata = NULL;
}
#endif /* MITSHM */