[balsa] Do not return pointer to finalized object
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa] Do not return pointer to finalized object
- Date: Sun, 9 Apr 2017 23:12:09 +0000 (UTC)
commit 10a7ffa1c483ad3a636acd802891fe342b4071bc
Author: Albrecht Dreß <albrecht dress arcor de>
Date: Sun Apr 9 11:32:17 2017 -0400
Do not return pointer to finalized object
* libnetclient/net-client.c (net_client_new): do not return
pointer to finalized object.
Signed-off-by: Peter Bloomfield <PeterBloomfield bellsouth net>
ChangeLog | 5 +++++
libnetclient/net-client.c | 1 +
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index ff86643..5a099d8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-04-09 Albrecht Dreß
+
+ * libnetclient/net-client.c (net_client_new): do not return
+ pointer to finalized object.
+
2017-04-08 Peter Bloomfield <pbloomfield bellsouth net>
Streamline code
diff --git a/libnetclient/net-client.c b/libnetclient/net-client.c
index c7b73f7..d1738c8 100644
--- a/libnetclient/net-client.c
+++ b/libnetclient/net-client.c
@@ -57,6 +57,7 @@ net_client_new(const gchar *host_and_port, guint16 default_port, gsize max_line_
if (client->priv->sock == NULL) {
g_object_unref(G_OBJECT(client));
+ client = NULL;
} else {
client->priv->host_and_port = g_strdup(host_and_port);
client->priv->default_port = default_port;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]