8284093: Memory leak: X11SD_DisposeXImage should also free obdata
Reviewed-by: prr, andrew
This commit is contained in:
parent
f4edb59a6e
commit
205cfb8496
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user