diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2011-12-16 15:43:55 +0100 |
---|---|---|
committer | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2012-01-12 10:06:49 +0100 |
commit | edc029a12e178c6e8f1d4bd64fadc40a85f941fd (patch) | |
tree | e2bdb80e46c126c0ddd61085e0af8e5751ee4085 /telepathy-farstream | |
parent | 250bc7c9bf42a805929e3d71740036fc513fde4a (diff) | |
download | telepathy-farstream-edc029a12e178c6e8f1d4bd64fadc40a85f941fd.tar.gz |
Set self->contents to NULL in dispose
This avoid a crash if dispose is ran twice or if content_removed is
called after dispose
Diffstat (limited to 'telepathy-farstream')
-rw-r--r-- | telepathy-farstream/call-channel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/telepathy-farstream/call-channel.c b/telepathy-farstream/call-channel.c index 4954430..94bdc4c 100644 --- a/telepathy-farstream/call-channel.c +++ b/telepathy-farstream/call-channel.c @@ -253,6 +253,7 @@ tf_call_channel_dispose (GObject *object) g_ptr_array_foreach (self->contents, (GFunc) g_object_run_dispose, NULL); g_ptr_array_free (self->contents, TRUE); } + self->contents = NULL; if (self->participants) g_ptr_array_unref (self->participants); |