# HG changeset patch # User Jorge VillaseƱor # Date 1444286362 25200 # Branch release-2.x.y # Node ID 902b1fd334bd4d41ffd217fa4e6864629b7d3edc # Parent b4e5abab111428d51b6d2b36ef9f8cac52d96d79 Remove Gstreamer pipeline after playing a sound When receiving an error or stream finished message, we can free the Gstreamer pipeline so we don't leak it for each sound. Patch from Sorokin Alexei, modified by me because the mediamanager subsystem uses a different approach to watch the bus. Fixes #16752 diff --git a/finch/gntsound.c b/finch/gntsound.c --- a/finch/gntsound.c +++ b/finch/gntsound.c @@ -449,6 +449,7 @@ case GST_MESSAGE_EOS: gst_element_set_state(play, GST_STATE_NULL); gst_object_unref(GST_OBJECT(play)); + return FALSE; break; case GST_MESSAGE_WARNING: gst_message_parse_warning(msg, &err, NULL); diff --git a/pidgin/gtksound.c b/pidgin/gtksound.c --- a/pidgin/gtksound.c +++ b/pidgin/gtksound.c @@ -394,6 +394,7 @@ case GST_MESSAGE_EOS: gst_element_set_state(play, GST_STATE_NULL); gst_object_unref(GST_OBJECT(play)); + return FALSE; break; case GST_MESSAGE_WARNING: gst_message_parse_warning(msg, &err, NULL);