Fix unsafe memory operations and warnings in the fatDrive class
- Move imageDiskList from pointer to vector of unique_ptr - Replace string operations with size-limited versions - Initialize members - Eliminate unecessary casts - Eliminate memory-leak on pointer assignment
This commit is contained in:
parent
e942a02fcb
commit
c9198b2944
11 changed files with 219 additions and 131 deletions
|
@ -68,6 +68,8 @@ private:
|
|||
class Program {
|
||||
public:
|
||||
Program();
|
||||
Program(const Program&) = delete; // prevent copy
|
||||
Program& operator=(const Program&) = delete; // prevent assignment
|
||||
virtual ~Program(){
|
||||
delete cmd;
|
||||
delete psp;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue