mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-25 18:22:59 +02:00
fix(Foundation): use after free warnings #4189
This commit is contained in:
@@ -302,6 +302,10 @@ public:
|
||||
protected:
|
||||
P activateObject(P pObject)
|
||||
{
|
||||
#if defined(POCO_COMPILER_GCC)
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wuse-after-free"
|
||||
#endif
|
||||
try
|
||||
{
|
||||
_factory.activateObject(pObject);
|
||||
@@ -312,6 +316,9 @@ protected:
|
||||
throw;
|
||||
}
|
||||
return pObject;
|
||||
#if defined(POCO_COMPILER_GCC)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user