fbd-dev-sound: Don't leak GError

This commit is contained in:
Guido Günther
2021-02-05 16:56:23 +01:00
parent 4ba2889b90
commit c95009afd1
+1 -1
View File
@@ -167,7 +167,7 @@ on_sound_play_finished_callback (GSoundContext *ctx,
GAsyncResult *res, GAsyncResult *res,
FbdAsyncData *data) FbdAsyncData *data)
{ {
GError *err = NULL; g_autoptr (GError) err = NULL;
if (!gsound_context_play_full_finish (ctx, res, &err)) { if (!gsound_context_play_full_finish (ctx, res, &err)) {
if (err->domain == GSOUND_ERROR && err->code == GSOUND_ERROR_NOTFOUND) { if (err->domain == GSOUND_ERROR && err->code == GSOUND_ERROR_NOTFOUND) {