From 3a9a4f8b478ff62e3c752e20305edb2c7d91959f Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 12 Nov 2022 03:31:11 +0000 Subject: gentoo auto-resync : 12:11:2022 - 03:31:11 --- .../files/polkit-qt-0.114.0-fix-memory-leak.patch | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 sys-auth/polkit-qt/files/polkit-qt-0.114.0-fix-memory-leak.patch (limited to 'sys-auth/polkit-qt/files') diff --git a/sys-auth/polkit-qt/files/polkit-qt-0.114.0-fix-memory-leak.patch b/sys-auth/polkit-qt/files/polkit-qt-0.114.0-fix-memory-leak.patch new file mode 100644 index 000000000000..02f830cbf531 --- /dev/null +++ b/sys-auth/polkit-qt/files/polkit-qt-0.114.0-fix-memory-leak.patch @@ -0,0 +1,36 @@ +From e6a3603b1f07cd85dbd84377afeda0777d6535e8 Mon Sep 17 00:00:00 2001 +From: Zhang Dingyuan +Date: Tue, 14 Jun 2022 11:37:40 +0800 +Subject: [PATCH] fix: memory leak + +agent listener does not reclaim private memory after destructing. +Use `QScopedPointer` to protect private pointers from being copied and to +reclaim memory properly. +--- + agent/polkitqt1-agent-listener.h | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/agent/polkitqt1-agent-listener.h b/agent/polkitqt1-agent-listener.h +index 07fe03a..a40ff41 100644 +--- a/agent/polkitqt1-agent-listener.h ++++ b/agent/polkitqt1-agent-listener.h +@@ -9,6 +9,7 @@ + #define POLKITQT1_AGENT_LISTENER_H + + #include ++#include + + #include "polkitqt1-agent-session.h" + +@@ -137,7 +138,7 @@ public Q_SLOTS: + virtual void cancelAuthentication() = 0; + + private: +- ListenerPrivate * const d; ++ QScopedPointer d; + }; + } + +-- +GitLab + -- cgit v1.2.3