Merge pull request #1953 from uajain/uajain/fix-memory-leak

async-progress: Plug memory leak while destroying GSource
This commit is contained in:
OpenShift Merge Robot 2019-10-29 06:26:17 +01:00 committed by GitHub
commit 476f375cfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -465,7 +465,7 @@ ostree_async_progress_finish (OstreeAsyncProgress *self)
if (self->idle_source) if (self->idle_source)
{ {
g_source_destroy (self->idle_source); g_source_destroy (self->idle_source);
self->idle_source = NULL; g_clear_pointer (&self->idle_source, g_source_unref);
emit_changed = TRUE; emit_changed = TRUE;
} }
} }