Gallium: Fix shared memory segment leak
Commitabe6d750e5caused shared memory segments to be leaked. We need to mark shared memory segments for deletion upon construction. Fixes:abe6d750e5xlib: fix glXDestroyContext in Gallium frontends Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9425 Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24556>
This commit is contained in:
committed by
Marge Bot
parent
5325582968
commit
4c11fe8ae6
@@ -138,6 +138,7 @@ alloc_shm(struct xlib_displaytarget *buf, unsigned size)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
shmctl(shminfo->shmid, IPC_RMID, 0);
|
||||
shminfo->readOnly = False;
|
||||
return shminfo->shmaddr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user