fixed a memory leak
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@303
This commit is contained in:
parent
90dc9815bd
commit
eb04b57604
1 changed files with 2 additions and 0 deletions
|
@ -650,6 +650,7 @@ bool DOS_FCBFindFirst(Bit16u seg,Bit16u offset)
|
|||
fcbout->Set_drive(drive +1);
|
||||
fcbout->Set_filename(naam);
|
||||
fcbout->Set_ext(ext);
|
||||
delete fcbout;
|
||||
return true;
|
||||
|
||||
}
|
||||
|
@ -689,6 +690,7 @@ bool DOS_FCBFindNext(Bit16u seg,Bit16u offset)
|
|||
fcbout->Set_drive(drive +1);
|
||||
fcbout->Set_filename(naam);
|
||||
fcbout->Set_ext(ext);
|
||||
delete fcbout;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue