notaz.gp2x.de
/
pcsx_rearmed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b21c766
)
cdrom: fix double free on exit
author
notaz
<notasas@gmail.com>
Thu, 24 Apr 2025 22:13:08 +0000
(
01:13
+0300)
committer
notaz
<notasas@gmail.com>
Thu, 24 Apr 2025 22:13:08 +0000
(
01:13
+0300)
libpcsxcore/cdrom-async.c
patch
|
blob
|
blame
|
history
diff --git
a/libpcsxcore/cdrom-async.c
b/libpcsxcore/cdrom-async.c
index
c2b6450
..
9bd14bb
100644
(file)
--- a/
libpcsxcore/cdrom-async.c
+++ b/
libpcsxcore/cdrom-async.c
@@
-308,8
+308,10
@@
void cdra_close(void)
{
acdrom_dbg("%s\n", __func__);
cdra_stop_thread();
- if (g_cd_handle)
+ if (g_cd_handle)
{
rcdrom_close(g_cd_handle);
+ g_cd_handle = NULL;
+ }
else
ISOclose();
}