async-progress: Plug memory leak while destroying GSource

See https://gitlab.gnome.org/GNOME/glib/commit/71973c722
This commit is contained in:
Umang Jain 2019-10-25 20:58:34 +05:30 committed by Umang Jain
parent f333ae74f4
commit 78c8c25d64
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;
} }
} }