diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2023-12-12 13:21:32 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2023-12-12 13:22:10 +0100 |
commit | 85ca293f98e680f782716f92f5566478197fb9e7 (patch) | |
tree | e5f2e06217b278e08d4cde0ad3d7b7d6d904db9c /media-libs/libqaccessibilityclient | |
parent | app-doc/gnucash-docs: add 5.4 (diff) | |
download | gentoo-85ca293f98e680f782716f92f5566478197fb9e7.tar.gz gentoo-85ca293f98e680f782716f92f5566478197fb9e7.tar.bz2 gentoo-85ca293f98e680f782716f92f5566478197fb9e7.zip |
media-libs/libqaccessibilityclient: Fix memleak
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'media-libs/libqaccessibilityclient')
-rw-r--r-- | media-libs/libqaccessibilityclient/files/libqaccessibilityclient-0.5.0-memleak.patch | 24 | ||||
-rw-r--r-- | media-libs/libqaccessibilityclient/libqaccessibilityclient-0.5.0-r1.ebuild | 35 |
2 files changed, 59 insertions, 0 deletions
diff --git a/media-libs/libqaccessibilityclient/files/libqaccessibilityclient-0.5.0-memleak.patch b/media-libs/libqaccessibilityclient/files/libqaccessibilityclient-0.5.0-memleak.patch new file mode 100644 index 000000000000..68ef226b8480 --- /dev/null +++ b/media-libs/libqaccessibilityclient/files/libqaccessibilityclient-0.5.0-memleak.patch @@ -0,0 +1,24 @@ +From 2c708c513131cd710fb5ba30ddaab0f4ce6a44a3 Mon Sep 17 00:00:00 2001 +From: Laurent Montel <montel@kde.org> +Date: Wed, 29 Nov 2023 07:59:25 +0100 +Subject: [PATCH] Fix mem leak + +--- + src/qaccessibilityclient/registry.cpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/qaccessibilityclient/registry.cpp b/src/qaccessibilityclient/registry.cpp +index bea73d0..4a32cf4 100644 +--- a/src/qaccessibilityclient/registry.cpp ++++ b/src/qaccessibilityclient/registry.cpp +@@ -19,6 +19,7 @@ Registry::Registry(QObject *parent) + + Registry::~Registry() + { ++ delete d->m_cache; + delete d; + } + +-- +GitLab + diff --git a/media-libs/libqaccessibilityclient/libqaccessibilityclient-0.5.0-r1.ebuild b/media-libs/libqaccessibilityclient/libqaccessibilityclient-0.5.0-r1.ebuild new file mode 100644 index 000000000000..45467eb78266 --- /dev/null +++ b/media-libs/libqaccessibilityclient/libqaccessibilityclient-0.5.0-r1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +ECM_KDEINSTALLDIRS="false" +ECM_TEST="true" +ECM_EXAMPLES="true" +QTMIN=5.15.9 +inherit ecm kde.org + +DESCRIPTION="Library for writing accessibility clients such as screen readers" +HOMEPAGE="https://community.kde.org/Accessibility +https://invent.kde.org/libraries/libqaccessibilityclient" + +if [[ ${KDE_BUILD_TYPE} = release ]]; then + SRC_URI="mirror://kde/stable/${PN}/${P}.tar.xz" + KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86" +fi + +LICENSE="LGPL-2.1" +SLOT="5" +IUSE="" + +# tests require DBus +RESTRICT="test" + +DEPEND=" + >=dev-qt/qtdbus-${QTMIN}:5 + >=dev-qt/qtgui-${QTMIN}:5 + >=dev-qt/qtwidgets-${QTMIN}:5 +" +RDEPEND="${DEPEND}" + +PATCHES=( "${FILESDIR}/${P}-memleak.patch" ) |