[gnome-flashback] monitor-config-manager: stop using GSlice
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] monitor-config-manager: stop using GSlice
- Date: Sun, 14 Mar 2021 13:57:03 +0000 (UTC)
commit 145e555d2ec7eb22595479aa3ce353021e678ae7
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Mar 14 15:53:16 2021 +0200
monitor-config-manager: stop using GSlice
backends/gf-monitor-config-manager.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/backends/gf-monitor-config-manager.c b/backends/gf-monitor-config-manager.c
index d63502e..5b9079f 100644
--- a/backends/gf-monitor-config-manager.c
+++ b/backends/gf-monitor-config-manager.c
@@ -776,7 +776,7 @@ assign_monitor_crtc (GfMonitor *monitor,
crtc_layout.width = (int) roundf (width);
crtc_layout.height = (int) roundf (height);
- crtc_assignment = g_slice_new0 (GfCrtcAssignment);
+ crtc_assignment = g_new0 (GfCrtcAssignment, 1);
*crtc_assignment = (GfCrtcAssignment) {
.crtc = crtc,
.mode = crtc_mode,
@@ -804,7 +804,7 @@ assign_monitor_crtc (GfMonitor *monitor,
else
assign_output_as_presentation = FALSE;
- output_assignment = g_slice_new0 (GfOutputAssignment);
+ output_assignment = g_new0 (GfOutputAssignment, 1);
*output_assignment = (GfOutputAssignment) {
.output = output,
.is_primary = assign_output_as_primary,
@@ -951,13 +951,13 @@ static void
gf_crtc_assignment_free (GfCrtcAssignment *assignment)
{
g_ptr_array_free (assignment->outputs, TRUE);
- g_slice_free (GfCrtcAssignment, assignment);
+ g_free (assignment);
}
static void
gf_output_assignment_free (GfOutputAssignment *assignment)
{
- g_slice_free (GfOutputAssignment, assignment);
+ g_free (assignment);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]