aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDebarshi Ray <debarshir@src.gnome.org>2012-03-25 18:57:52 +0800
committerDebarshi Ray <debarshir@gnome.org>2012-03-28 18:51:31 +0800
commita452a7cfaee6fc192c455410b4e3ea6443162ea3 (patch)
tree15016876bb586072173f8769a79154d5d8df174d
parent8ec865b790b07375792a3a6f7c485e1cfcb83253 (diff)
downloadgsoc2013-empathy-a452a7cfaee6fc192c455410b4e3ea6443162ea3.tar
gsoc2013-empathy-a452a7cfaee6fc192c455410b4e3ea6443162ea3.tar.gz
gsoc2013-empathy-a452a7cfaee6fc192c455410b4e3ea6443162ea3.tar.bz2
gsoc2013-empathy-a452a7cfaee6fc192c455410b4e3ea6443162ea3.tar.lz
gsoc2013-empathy-a452a7cfaee6fc192c455410b4e3ea6443162ea3.tar.xz
gsoc2013-empathy-a452a7cfaee6fc192c455410b4e3ea6443162ea3.tar.zst
gsoc2013-empathy-a452a7cfaee6fc192c455410b4e3ea6443162ea3.zip
call-window: don't leak the element name
Fixes: https://bugzilla.gnome.org/672796
-rw-r--r--src/empathy-call-window.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 18324619a..71c1a975e 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -3625,14 +3625,15 @@ empathy_call_window_bus_message (GstBus *bus, GstMessage *message,
GError *error = NULL;
GstElement *gst_error;
gchar *debug;
+ gchar *name;
gst_message_parse_error (message, &error, &debug);
gst_error = GST_ELEMENT (GST_MESSAGE_SRC (message));
g_message ("Element error: %s -- %s\n", error->message, debug);
- if (g_str_has_prefix (gst_element_get_name (gst_error),
- VIDEO_INPUT_ERROR_PREFIX))
+ name = gst_element_get_name (gst_error);
+ if (g_str_has_prefix (name, VIDEO_INPUT_ERROR_PREFIX))
{
/* Remove the video input and continue */
if (priv->video_input != NULL)
@@ -3643,6 +3644,7 @@ empathy_call_window_bus_message (GstBus *bus, GstMessage *message,
{
empathy_call_window_disconnected (self, TRUE);
}
+ g_free (name);
g_error_free (error);
g_free (debug);
}