diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2014-04-24 16:58:21 +0100 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2014-04-24 16:59:19 +0100 |
commit | 50cd3e97cd125c320ebd5b2fffd9ab0f3179a2f6 (patch) | |
tree | 5052781c2d8851c53197da38c677f1aa3234a20d | |
parent | 468e985d4000e75f6b444c547a5be6641a6fb5e0 (diff) | |
download | gssdp-50cd3e97cd125c320ebd5b2fffd9ab0f3179a2f6.tar.gz |
gssdp-socket-source: Fix the destroy/unref order on a GSource
g_source_destroy() should always be called before g_source_unref().
https://bugzilla.gnome.org/show_bug.cgi?id=728888
-rw-r--r-- | libgssdp/gssdp-socket-source.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgssdp/gssdp-socket-source.c b/libgssdp/gssdp-socket-source.c index fe5f3df..ee52f9d 100644 --- a/libgssdp/gssdp-socket-source.c +++ b/libgssdp/gssdp-socket-source.c @@ -370,8 +370,8 @@ gssdp_socket_source_dispose (GObject *object) self = GSSDP_SOCKET_SOURCE (object); if (self->priv->source != NULL) { - g_source_unref (self->priv->source); g_source_destroy (self->priv->source); + g_source_unref (self->priv->source); self->priv->source = NULL; } |