diff options
author | Alberto Mardegan <mardy@users.sourceforge.net> | 2007-09-26 07:01:10 +0000 |
---|---|---|
committer | Alberto Mardegan <mardy@users.sourceforge.net> | 2007-09-26 07:01:10 +0000 |
commit | cd1b1868f59a222eddff03cbc1cb1fb1655cd5ff (patch) | |
tree | db2ac3c9f5b2856d5753a5271aae7c4bf453e271 /src | |
parent | 043615a440efee214592a32137680e7b6aeb0c2a (diff) |
Fix a memory leak.
git-svn-id: https://mission-control.svn.sourceforge.net/svnroot/mission-control/trunk@153 d91c8aed-3f2b-0410-a83d-924a1c20a0ba
Diffstat (limited to 'src')
-rw-r--r-- | src/mcd-connection.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mcd-connection.c b/src/mcd-connection.c index 151f6090..e96c9692 100644 --- a/src/mcd-connection.c +++ b/src/mcd-connection.c @@ -603,7 +603,7 @@ on_capabilities_changed (DBusGProxy *tp_conn_proxy, /* Return also if the "tp_chan_call" data is set (which means that a * request for this channel has already been made) */ if (g_object_get_data (G_OBJECT (channel), "tp_chan_call") != NULL) - return; + goto done; chan_handle_type = mcd_channel_get_handle_type (channel); g_debug ("%s: requesting channel again (type = %s, handle_type = %u, handle = %u)", G_STRFUNC, chan_type, chan_handle_type, chan_handle); @@ -614,6 +614,7 @@ on_capabilities_changed (DBusGProxy *tp_conn_proxy, mcd_async_request_chan_callback, channel); g_object_set_data (G_OBJECT (channel), "tp_chan_call", call); +done: g_free (chan_type); } |