diff options
author | Vivek Dasmohapatra <vivek@collabora.co.uk> | 2009-07-15 11:26:58 +0100 |
---|---|---|
committer | Vivek Dasmohapatra <vivek@collabora.co.uk> | 2009-07-15 11:26:58 +0100 |
commit | f5a6b2438988af2ccfa93dd21ab27861de40c146 (patch) | |
tree | 8bc12fbec093b94bd7bd2eb903efcd1024c15994 | |
parent | ee645a6b78742638b860ca3824ba0246f034a069 (diff) |
NULL out priv members after unref()ing them.
-rw-r--r-- | wocky/wocky-connector.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/wocky/wocky-connector.c b/wocky/wocky-connector.c index b513bea..678816f 100644 --- a/wocky/wocky-connector.c +++ b/wocky/wocky-connector.c @@ -247,6 +247,7 @@ abort_connect_error (WockyConnector *connector, g_simple_async_result_set_from_error (priv->result, *error); g_simple_async_result_complete (priv->result); g_object_unref (priv->result); + priv->result = NULL; } static void @@ -273,6 +274,7 @@ abort_connect_code (WockyConnector *connector, g_simple_async_result_set_from_error (priv->result, err); g_simple_async_result_complete (priv->result); g_object_unref (priv->result); + priv->result = NULL; g_error_free (err); } @@ -1073,6 +1075,7 @@ establish_session (WockyConnector *self) { g_simple_async_result_complete (priv->result); g_object_unref (priv->result); + priv->result = NULL; } } @@ -1154,6 +1157,7 @@ establish_session_recv_cb (GObject *source, case WOCKY_STANZA_SUB_TYPE_RESULT: g_simple_async_result_complete (priv->result); g_object_unref (priv->result); + priv->result = NULL; break; default: |