summaryrefslogtreecommitdiff
path: root/server/dcc.cpp
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2020-03-02 16:40:59 +0000
committerFrediano Ziglio <freddy77@gmail.com>2020-05-01 06:58:09 +0100
commit69fbef6fff925fa86671db7878121af39c2476fc (patch)
tree580fb4dda950cd96da597b9e7e48c026ab2e4b4d /server/dcc.cpp
parent3a05720eaad93a46b1a4cd3db889b94d7657c724 (diff)
Add RedChannel::(un)ref for reference counting and use them
This will reduce code to avoid gobject and make code less type unsafe. Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Diffstat (limited to 'server/dcc.cpp')
-rw-r--r--server/dcc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/dcc.cpp b/server/dcc.cpp
index 606e6873..a825cf2d 100644
--- a/server/dcc.cpp
+++ b/server/dcc.cpp
@@ -571,7 +571,7 @@ void dcc_start(DisplayChannelClient *dcc)
if (!display_channel_client_wait_for_init(dcc))
return;
- g_object_ref(dcc);
+ dcc->ref();
dcc->ack_zero_messages_window();
if (display->priv->surfaces[0].context.canvas) {
display_channel_current_flush(display, 0);
@@ -588,7 +588,7 @@ void dcc_start(DisplayChannelClient *dcc)
dcc->pipe_add(dcc_gl_scanout_item_new(dcc, NULL, 0));
dcc_push_monitors_config(dcc);
}
- g_object_unref(dcc);
+ dcc->unref();
}
static void dcc_destroy_stream_agents(DisplayChannelClient *dcc)