async-progress: Plug memory leak while destroying GSource
See https://gitlab.gnome.org/GNOME/glib/commit/71973c722
This commit is contained in:
1 parent
f333ae74f4
commit
78c8c25d64
1 file changed
+1
-1
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user