mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-19 22:50:35 +03:00
lib/progress: Fix leak of GSource
Closes: https://github.com/ostreedev/ostree/issues/1738 Closes: #1741 Approved by: jlebon
This commit is contained in:
parent
6e3d4f9054
commit
899b0bfad2
@ -228,7 +228,7 @@ idle_invoke_async_progress (gpointer user_data)
|
||||
OstreeAsyncProgress *self = user_data;
|
||||
|
||||
g_mutex_lock (&self->lock);
|
||||
self->idle_source = NULL;
|
||||
g_clear_pointer (&self->idle_source, g_source_unref);
|
||||
g_mutex_unlock (&self->lock);
|
||||
|
||||
g_signal_emit (self, signals[CHANGED], 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user