Delete the commandline and psp opbject in destructor.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@409
This commit is contained in:
parent
9ed0094a0e
commit
7d6603d275
1 changed files with 4 additions and 1 deletions
|
@ -32,7 +32,10 @@ void PROGRAMS_MakeFile(char * name,PROGRAMS_Main * main);
|
|||
class Program {
|
||||
public:
|
||||
Program();
|
||||
virtual ~Program(){}
|
||||
virtual ~Program(){
|
||||
delete cmd;
|
||||
delete psp;
|
||||
}
|
||||
std::string temp_line;
|
||||
CommandLine * cmd;
|
||||
DOS_PSP * psp;
|
||||
|
|
Loading…
Add table
Reference in a new issue