1
0
Fork 0

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:
krcroft 2019-12-07 11:55:38 -08:00 committed by Patryk Obara
parent e942a02fcb
commit c9198b2944
11 changed files with 219 additions and 131 deletions

View file

@ -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;