diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2012-02-24 20:34:50 -0500 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2012-02-24 20:34:50 -0500 |
commit | 65707a304bb55a546d79be737d9145cd4b891da9 (patch) | |
tree | 6620b0c4f87aa43ea5f29facba3ffda15e6d7c16 /rakia/sip-session.c | |
parent | 09069b773167ac1519ef8f4c2d2fd823b090c8e3 (diff) |
Fix memory leaks found by valgrind
Diffstat (limited to 'rakia/sip-session.c')
-rw-r--r-- | rakia/sip-session.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/rakia/sip-session.c b/rakia/sip-session.c index b52abd0..aeb1506 100644 --- a/rakia/sip-session.c +++ b/rakia/sip-session.c @@ -390,6 +390,22 @@ rakia_sip_session_dispose (GObject *object) tp_clear_object (&self->priv->conn); + if (self->priv->remote_sdp != NULL) + { + self->priv->remote_sdp = NULL; + g_assert (self->priv->home != NULL); + su_home_unref (self->priv->home); + self->priv->home = NULL; + } + + if (self->priv->backup_remote_sdp != NULL) + { + self->priv->backup_remote_sdp = NULL; + g_assert (self->priv->backup_home != NULL); + su_home_unref (self->priv->backup_home); + self->priv->backup_home = NULL; + } + if (G_OBJECT_CLASS (rakia_sip_session_parent_class)->dispose) G_OBJECT_CLASS (rakia_sip_session_parent_class)->dispose (object); |