mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1027251 - Fix or whitelist dangerous public destructors in ipc/ - r=bent
This commit is contained in:
parent
e1501eec81
commit
96b29e0856
@ -35,6 +35,9 @@ class RefCountedMonitor : public Monitor
|
||||
{}
|
||||
|
||||
NS_INLINE_DECL_THREADSAFE_REFCOUNTING(RefCountedMonitor)
|
||||
|
||||
private:
|
||||
~RefCountedMonitor() {}
|
||||
};
|
||||
|
||||
class MessageChannel : HasResultCodes
|
||||
@ -381,7 +384,9 @@ class MessageChannel : HasResultCodes
|
||||
RefCountedTask(CancelableTask* aTask)
|
||||
: mTask(aTask)
|
||||
{ }
|
||||
private:
|
||||
~RefCountedTask() { delete mTask; }
|
||||
public:
|
||||
void Run() { mTask->Run(); }
|
||||
void Cancel() { mTask->Cancel(); }
|
||||
|
||||
|
@ -25,6 +25,17 @@ enum Rights {
|
||||
}
|
||||
|
||||
namespace mozilla {
|
||||
|
||||
namespace ipc {
|
||||
class SharedMemory;
|
||||
}
|
||||
|
||||
template<>
|
||||
struct HasDangerousPublicDestructor<mozilla::ipc::SharedMemory>
|
||||
{
|
||||
static const bool value = true;
|
||||
};
|
||||
|
||||
namespace ipc {
|
||||
|
||||
class SharedMemory
|
||||
|
Loading…
Reference in New Issue
Block a user