[glib-networking/mcatanzaro/tls-thread] progress
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/mcatanzaro/tls-thread] progress
- Date: Sun, 29 Dec 2019 19:48:35 +0000 (UTC)
commit b1e4cbb0a7d572c5607ac73c188d74e74b0cb36b
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sun Dec 29 13:48:33 2019 -0600
progress
tls/base/gtlsoperationsthread-base.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tls/base/gtlsoperationsthread-base.c b/tls/base/gtlsoperationsthread-base.c
index bb12fdf..dda971a 100644
--- a/tls/base/gtlsoperationsthread-base.c
+++ b/tls/base/gtlsoperationsthread-base.c
@@ -641,7 +641,7 @@ verify_certificate_data_new (GTlsOperationsThreadBase *thread,
data = g_new0 (VerifyCertificateData, 1);
data->thread = g_object_ref (thread);
- data->peer_certificate = g_object_ref (peer_certificate);
+ data->peer_certificate = peer_certificate ? g_object_ref (peer_certificate) : NULL;
data->context = context;
g_mutex_init (&data->mutex);
@@ -653,8 +653,8 @@ verify_certificate_data_new (GTlsOperationsThreadBase *thread,
static void
verify_certificate_data_free (VerifyCertificateData *data)
{
- g_object_unref (data->thread);
- g_object_unref (data->peer_certificate);
+ g_clear_object (&data->thread);
+ g_clear_object (&data->peer_certificate);
g_mutex_clear (&data->mutex);
g_cond_clear (&data->condition);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]