1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-18 20:40:43 +01:00

Free the error messages properly, since they aren't owned by gstreamer. Thanks john :)

This commit is contained in:
David Sansome 2010-04-19 12:30:19 +00:00
parent 4bc704d7e3
commit f4e9de8e5b

View File

@ -203,8 +203,12 @@ void GstEnginePipeline::ErrorMessageReceived(GstMessage* msg) {
gchar* debugs;
gst_message_parse_error(msg, &error, &debugs);
QString message(error->message);
emit Error(QString::fromAscii(error->message));
g_error_free(error);
free(debugs);
emit Error(message);
}
void GstEnginePipeline::TagMessageReceived(GstMessage* msg) {