diff options
| author | Lioncash <mathew1800@gmail.com> | 2014-08-31 09:34:58 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2014-08-31 14:48:57 -0400 |
| commit | 4cb46879bc2fb517d0db70d5bcb53685a9ab0102 (patch) | |
| tree | 95ad6c206fdfa5c923fce2f7a4f8fe68d0c9243b /Source/Core/DiscIO/VolumeGC.cpp | |
| parent | ea7eee1f585c60cfade51269e356c75c8e16955b (diff) | |
DiscIO: Move some raw pointers over to unique_ptr
Diffstat (limited to 'Source/Core/DiscIO/VolumeGC.cpp')
| -rw-r--r-- | Source/Core/DiscIO/VolumeGC.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/DiscIO/VolumeGC.cpp b/Source/Core/DiscIO/VolumeGC.cpp index 63c60a9846..9c3dfadf17 100644 --- a/Source/Core/DiscIO/VolumeGC.cpp +++ b/Source/Core/DiscIO/VolumeGC.cpp @@ -3,6 +3,7 @@ // Refer to the license.txt file included. #include <cstddef> +#include <memory> #include <string> #include <vector> @@ -21,8 +22,6 @@ CVolumeGC::CVolumeGC(IBlobReader* _pReader) CVolumeGC::~CVolumeGC() { - delete m_pReader; - m_pReader = nullptr; // I don't think this makes any difference, but anyway } bool CVolumeGC::Read(u64 _Offset, u64 _Length, u8* _pBuffer) const |
