summaryrefslogtreecommitdiffstats
path: root/source/a/upower/patches/0002-linux-Fix-memory-leak-in-Bluez-backend.patch
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2021-06-18 20:33:08 +0000
committer Eric Hameleers <alien@slackware.com>2021-06-19 02:59:56 +0200
commitd982348571d80dbef6cd54f4af963ffe8237b9a9 (patch)
tree8b84c61e396b2989872537d0e3b0ee7f5d683a5f /source/a/upower/patches/0002-linux-Fix-memory-leak-in-Bluez-backend.patch
parent485160d3b1290e06e312141561f1f64c7ed64040 (diff)
downloadcurrent-d982348571d80dbef6cd54f4af963ffe8237b9a9.tar.gz
current-d982348571d80dbef6cd54f4af963ffe8237b9a9.tar.xz
Fri Jun 18 20:33:08 UTC 202120210618203308
a/kernel-generic-5.12.12-x86_64-1.txz: Upgraded. a/kernel-huge-5.12.12-x86_64-1.txz: Upgraded. a/kernel-modules-5.12.12-x86_64-1.txz: Upgraded. a/upower-0.99.12-x86_64-1.txz: Upgraded. d/kernel-headers-5.12.12-x86-1.txz: Upgraded. d/rust-1.53.0-x86_64-1.txz: Upgraded. k/kernel-source-5.12.12-noarch-1.txz: Upgraded. kde/kdeconnect-kde-21.04.2-x86_64-2.txz: Rebuilt. Recompiled against pulseaudio-qt-1.3. l/gdbm-1.20-x86_64-1.txz: Upgraded. n/bind-9.16.18-x86_64-1.txz: Upgraded. n/openvpn-2.5.3-x86_64-1.txz: Upgraded. isolinux/initrd.img: Rebuilt. kernels/*: Upgraded. usb-and-pxe-installers/usbboot.img: Rebuilt.
Diffstat (limited to 'source/a/upower/patches/0002-linux-Fix-memory-leak-in-Bluez-backend.patch')
-rw-r--r--source/a/upower/patches/0002-linux-Fix-memory-leak-in-Bluez-backend.patch51
1 files changed, 0 insertions, 51 deletions
diff --git a/source/a/upower/patches/0002-linux-Fix-memory-leak-in-Bluez-backend.patch b/source/a/upower/patches/0002-linux-Fix-memory-leak-in-Bluez-backend.patch
deleted file mode 100644
index 0a45dcf1b..000000000
--- a/source/a/upower/patches/0002-linux-Fix-memory-leak-in-Bluez-backend.patch
+++ /dev/null
@@ -1,51 +0,0 @@
-From 8e6cb06ff68a283b9857d4d0e831d93c42521534 Mon Sep 17 00:00:00 2001
-From: Bastien Nocera <hadess@hadess.net>
-Date: Thu, 17 Oct 2019 16:36:58 +0200
-Subject: [PATCH 2/7] linux: Fix memory leak in Bluez backend
-
-g_dbus_proxy_get_cached_property() returns transfer full GVariants.
----
- src/linux/up-device-bluez.c | 17 +++++++++++++----
- 1 file changed, 13 insertions(+), 4 deletions(-)
-
-diff --git a/src/linux/up-device-bluez.c b/src/linux/up-device-bluez.c
-index cd89529..5e595a9 100644
---- a/src/linux/up-device-bluez.c
-+++ b/src/linux/up-device-bluez.c
-@@ -71,9 +71,10 @@ up_device_bluez_coldplug (UpDevice *device)
- GDBusProxy *proxy;
- GError *error = NULL;
- UpDeviceKind kind;
-+ guint16 appearance;
- const char *uuid;
- const char *model;
-- guint16 appearance;
-+ GVariant *v;
- guchar percentage;
-
- /* Static device properties */
-@@ -93,10 +94,18 @@ up_device_bluez_coldplug (UpDevice *device)
- return FALSE;
- }
-
-- appearance = g_variant_get_uint16 (g_dbus_proxy_get_cached_property (proxy, "Appearance"));
-+ v = g_dbus_proxy_get_cached_property (proxy, "Appearance");
-+ appearance = g_variant_get_uint16 (v);
- kind = appearance_to_kind (appearance);
-- uuid = g_variant_get_string (g_dbus_proxy_get_cached_property (proxy, "Address"), NULL);
-- model = g_variant_get_string (g_dbus_proxy_get_cached_property (proxy, "Alias"), NULL);
-+ g_variant_unref (v);
-+
-+ v = g_dbus_proxy_get_cached_property (proxy, "Address");
-+ uuid = g_variant_get_string (v, NULL);
-+ g_variant_unref (v);
-+
-+ v = g_dbus_proxy_get_cached_property (proxy, "Alias");
-+ model = g_variant_get_string (v, NULL);
-+ g_variant_unref (v);
-
- /* hardcode some values */
- g_object_set (device,
---
-2.24.1
-