Commit 2e2d941
committed
Fix mne_browse segfault: dangling QFile in openFiffRawData
QFile rawFile was local to openFiffRawData() but FiffRawData's
internal FiffStream held a pointer to it. After the function returned,
read_raw_segment() called isOpen() on the destroyed QFile → SIGSEGV.
Fix: use the persistent member m_qFileRaw directly.1 parent 5e65a2b commit 2e2d941
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1224 | 1224 | | |
1225 | 1225 | | |
1226 | 1226 | | |
1227 | | - | |
1228 | | - | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
1229 | 1232 | | |
1230 | 1233 | | |
1231 | 1234 | | |
| |||
0 commit comments