[gnome-power-manager] trivial: Use a non-deprecated function to avoid leaking memory
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-power-manager] trivial: Use a non-deprecated function to avoid leaking memory
- Date: Thu, 7 Feb 2019 10:35:48 +0000 (UTC)
commit b56531a33163c796346331c0bf937ef489570804
Author: Richard Hughes <richard hughsie com>
Date: Thu Feb 7 10:27:04 2019 +0000
trivial: Use a non-deprecated function to avoid leaking memory
meson.build | 2 +-
src/gpm-statistics.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/meson.build b/meson.build
index 4bc51d64..6ac6b897 100644
--- a/meson.build
+++ b/meson.build
@@ -80,7 +80,7 @@ add_global_link_arguments(
gtk = dependency('gtk+-3.0', version : '>= 3.3.8')
gdk = dependency('gdk-3.0', version : '>= 2.91.7')
cairo = dependency('cairo', version : '>= 1.0.0')
-upower = dependency('upower-glib', version : '>= 0.9.1')
+upower = dependency('upower-glib', version : '>= 0.99.8')
libm = cc.find_library('libm', required: false)
gnome = import('gnome')
diff --git a/src/gpm-statistics.c b/src/gpm-statistics.c
index 0f5c3a5c..9d61cc1d 100644
--- a/src/gpm-statistics.c
+++ b/src/gpm-statistics.c
@@ -1521,7 +1521,7 @@ gpm_stats_startup_cb (GApplication *application,
/* coldplug */
client = up_client_new ();
- devices_tmp = up_client_get_devices (client);
+ devices_tmp = up_client_get_devices2 (client);
g_signal_connect (client, "device-added", G_CALLBACK (gpm_stats_device_added_cb), NULL);
g_signal_connect (client, "device-removed", G_CALLBACK (gpm_stats_device_removed_cb), NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]