mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
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> (cherry picked from commit4c11fe8ae6)
This commit is contained in:
parent
d212fb6009
commit
982b3d8fc8
2 changed files with 2 additions and 1 deletions
|
|
@ -9784,7 +9784,7 @@
|
|||
"description": "Gallium: Fix shared memory segment leak",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "abe6d750e58d371624de75f4bad365c61e0196c1",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue