aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-10-19 18:33:48 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-10-19 21:09:15 +0800
commit09a5b716473a7f57f438b913c4d889798b084461 (patch)
tree76ab75a9a4c8927d5f0dbf27559814dfc49c82dc /src
parent057159903dc48bfd304bd8e157c446122c880a0d (diff)
downloadgsoc2013-empathy-09a5b716473a7f57f438b913c4d889798b084461.tar
gsoc2013-empathy-09a5b716473a7f57f438b913c4d889798b084461.tar.gz
gsoc2013-empathy-09a5b716473a7f57f438b913c4d889798b084461.tar.bz2
gsoc2013-empathy-09a5b716473a7f57f438b913c4d889798b084461.tar.lz
gsoc2013-empathy-09a5b716473a7f57f438b913c4d889798b084461.tar.xz
gsoc2013-empathy-09a5b716473a7f57f438b913c4d889798b084461.tar.zst
gsoc2013-empathy-09a5b716473a7f57f438b913c4d889798b084461.zip
empathy-call-window: use empathy_signal_connect_weak to connect the peak-level-changed signal
That way the callback won't be called once the call window has been destroyed (#598432).
Diffstat (limited to 'src')
-rw-r--r--src/empathy-call-window.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index c274ee2a6..939263492 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -620,8 +620,9 @@ empathy_call_window_setup_self_frame (GstBus *bus, EmpathyCallWindow *self)
gst_object_ref (priv->audio_input);
gst_object_sink (priv->audio_input);
- g_signal_connect (priv->audio_input, "peak-level-changed",
- G_CALLBACK (empathy_call_window_audio_input_level_changed_cb), self);
+ empathy_signal_connect_weak (priv->audio_input, "peak-level-changed",
+ G_CALLBACK (empathy_call_window_audio_input_level_changed_cb),
+ G_OBJECT (self));
}
static void