Fix potential UAF in ConcatInPlace.
[pdfium.git] / core / src / fxcrt / fxcrt_posix.h
index f76e35c..89162cd 100644 (file)
@@ -8,7 +8,7 @@
 #define _FXCRT_LINUX_
 #include "extension.h"
 #if _FXM_PLATFORM_ == _FXM_PLATFORM_LINUX_ || _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ || _FXM_PLATFORM_ == _FXM_PLATFORM_ANDROID_
-class CFXCRT_FileAccess_Posix : public IFXCRT_FileAccess, public CFX_Object
+class CFXCRT_FileAccess_Posix : public IFXCRT_FileAccess
 {
 public:
     CFXCRT_FileAccess_Posix();
@@ -16,7 +16,7 @@ public:
     virtual FX_BOOL            Open(FX_BSTR fileName, FX_DWORD dwMode);
     virtual FX_BOOL            Open(FX_WSTR fileName, FX_DWORD dwMode);
     virtual void               Close();
-    virtual void               Release(IFX_Allocator* pAllocator = NULL);
+    virtual void               Release();
     virtual FX_FILESIZE        GetSize() const;
     virtual FX_FILESIZE        GetPosition() const;
     virtual FX_FILESIZE        SetPosition(FX_FILESIZE pos);