[gnome-flashback] idle-monitor: stop using GSlice
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] idle-monitor: stop using GSlice
- Date: Sun, 14 Mar 2021 13:57:03 +0000 (UTC)
commit 3359540e99a0541d05aab7818d0710608ef8bb71
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Mar 14 15:55:21 2021 +0200
idle-monitor: stop using GSlice
gnome-flashback/libidle-monitor/flashback-idle-monitor.c | 4 ++--
gnome-flashback/libidle-monitor/meta-idle-monitor-xsync.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gnome-flashback/libidle-monitor/flashback-idle-monitor.c
b/gnome-flashback/libidle-monitor/flashback-idle-monitor.c
index 2b04400..ce30bda 100644
--- a/gnome-flashback/libidle-monitor/flashback-idle-monitor.c
+++ b/gnome-flashback/libidle-monitor/flashback-idle-monitor.c
@@ -76,7 +76,7 @@ destroy_dbus_watch (gpointer data)
g_free (watch->dbus_name);
g_bus_unwatch_name (watch->name_watcher_id);
- g_slice_free (DBusWatch, watch);
+ g_free (watch);
}
static void
@@ -125,7 +125,7 @@ make_dbus_watch (MetaDBusIdleMonitor *skeleton,
connection = g_dbus_method_invocation_get_connection (invocation);
sender = g_dbus_method_invocation_get_sender (invocation);
- watch = g_slice_new (DBusWatch);
+ watch = g_new0 (DBusWatch, 1);
watch->dbus_monitor = g_object_ref (skeleton);
watch->monitor = g_object_ref (monitor);
watch->dbus_name = g_strdup (sender);
diff --git a/gnome-flashback/libidle-monitor/meta-idle-monitor-xsync.c
b/gnome-flashback/libidle-monitor/meta-idle-monitor-xsync.c
index fec61a8..14ef2d9 100644
--- a/gnome-flashback/libidle-monitor/meta-idle-monitor-xsync.c
+++ b/gnome-flashback/libidle-monitor/meta-idle-monitor-xsync.c
@@ -238,7 +238,7 @@ free_watch (gpointer data)
}
g_object_unref (monitor);
- g_slice_free (MetaIdleMonitorWatchXSync, watch_xsync);
+ g_free (watch_xsync);
}
static MetaIdleMonitorWatch *
@@ -252,7 +252,7 @@ meta_idle_monitor_xsync_make_watch (MetaIdleMonitor *monitor,
MetaIdleMonitorWatchXSync *watch_xsync;
MetaIdleMonitorWatch *watch;
- watch_xsync = g_slice_new0 (MetaIdleMonitorWatchXSync);
+ watch_xsync = g_new0 (MetaIdleMonitorWatchXSync, 1);
watch = (MetaIdleMonitorWatch *) watch_xsync;
watch->monitor = monitor;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]