Commit 6449910
fix: address Copilot review on PR #126
Three findings from Copilot's review of the leak fix:
1. src/m68000/m68kinterface.c had a redundant `extern struct instr *
table68k;` -- already declared in readcpu.h. Removed.
2. m68k_done() reaching directly into table68k (owned by readcpu.c)
was a brittle cross-module dependency. Moved the actual free into
a new free_table68k() in readcpu.c (declared in readcpu.h
alongside read_table68k). m68k_done now just calls free_table68k()
+ resets emulation_initialized. Ownership stays end-to-end inside
the module that allocates.
3. test/test_hle_bios.c inline comment was too long for one line.
Converted to a multi-line block above the call.
Build sanity: make -j4 clean, c89-lint passes, dylib still gates 46
retro_* exports.
Co-Authored-By: Claude Opus 4.7 <[email protected]>1 parent a1e9ea0 commit 6449910
4 files changed
Lines changed: 25 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | | - | |
86 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
87 | 89 | | |
88 | 90 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
| 91 | + | |
94 | 92 | | |
95 | 93 | | |
96 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
922 | 922 | | |
923 | 923 | | |
924 | 924 | | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
925 | 939 | | |
926 | 940 | | |
927 | 941 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
115 | 116 | | |
116 | 117 | | |
117 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3172 | 3172 | | |
3173 | 3173 | | |
3174 | 3174 | | |
3175 | | - | |
| 3175 | + | |
| 3176 | + | |
| 3177 | + | |
| 3178 | + | |
3176 | 3179 | | |
3177 | 3180 | | |
3178 | 3181 | | |
| |||
0 commit comments