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:
parent
4bc704d7e3
commit
f4e9de8e5b
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user