Skip to content

Commit

Permalink
Update dos_programs.cpp
Browse files Browse the repository at this point in the history
Do not AddRef(), since refcount seems set to 1 already at creation
  • Loading branch information
maxpat78 authored Oct 27, 2023
1 parent d2febc9 commit 745319e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dos/dos_programs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ void MenuBrowseFDImage(char drive, int num, int type) {
if (imageDiskList[drive-'A']) {
imageDiskList[drive-'A']->Release();
imageDiskList[drive-'A'] = newDrive->loadedDisk;
imageDiskList[drive-'A']->Addref();
//imageDiskList[drive-'A']->Addref();
imageDiskChange[drive-'A'] = true;
}
if (swapInDisksSpecificDrive == drive-'A' && diskSwap[swapPosition]) {
Expand Down

0 comments on commit 745319e

Please sign in to comment.