Bug: SWS/IX: Import m3u/pls playlist - crash when cancelling file loading dialog #1041
Comments
Also fixes a memory leak of the temporary filename buffer returned by BrowseForFiles when the import is not cancelled. (closes reaper-oss#1041)
It was also leaking the filename buffer when not cancelling... |
Hah, you were a tad faster. edit: === While at it, I found another minor quirk, when clicking 'No' in the 'Cannot find some files. Create items anyway?' dialog it creates the items anyway. Line 267 in 400c3c1 should be 'return' instead of 'break' in line 268 I think. |
Oh sorry! I wasn't sure whether you wanted to fix it... Maybe the message box should instead say "The following files cannot be found. Create items for them anyway?" to be clearer. |
No problem, doesn't matter to me who fixes something in the end. :)
That's what I thought it should do, but here I import a playlist where files are not found, when I click 'No' it still creates the (offline) items, that's what confuses me. |
Looks like another bug to me! I'm guessing PCM_Source_CreateFromFile used to return NULL at the time this feature was written when the file didn't exist. |
This seems to fix I think: edit: |
(click image for bigger version)
The text was updated successfully, but these errors were encountered: