Commit c95009af authored by Guido Gunther's avatar Guido Gunther
Browse files

fbd-dev-sound: Don't leak GError

parent 4ba2889b
......@@ -167,7 +167,7 @@ on_sound_play_finished_callback (GSoundContext *ctx,
GAsyncResult *res,
FbdAsyncData *data)
GError *err = NULL;
g_autoptr (GError) err = NULL;
if (!gsound_context_play_full_finish (ctx, res, &err)) {
if (err->domain == GSOUND_ERROR && err->code == GSOUND_ERROR_NOTFOUND) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment