diff options
| author | Patrick Griffis <pgriffis@igalia.com> | 2020-11-13 13:10:08 -0600 |
|---|---|---|
| committer | Patrick Griffis <pgriffis@igalia.com> | 2020-11-13 13:10:08 -0600 |
| commit | cafdabc8c47027c2a122f8e200cf32f2ee266c63 (patch) | |
| tree | 710aeca8b932fb6ee9f9e5248b27b2e4d07e3e79 /libsoup/cache | |
| parent | 876b7417e62d40bc977272bd4adc12e73447bb0b (diff) | |
| download | libsoup-cafdabc8c47027c2a122f8e200cf32f2ee266c63.tar.gz | |
Change soup_add_timeout() to transfer ownership
This is more clear for static analysis.
Diffstat (limited to 'libsoup/cache')
| -rw-r--r-- | libsoup/cache/soup-cache.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libsoup/cache/soup-cache.c b/libsoup/cache/soup-cache.c index e97d822e..d5c4354b 100644 --- a/libsoup/cache/soup-cache.c +++ b/libsoup/cache/soup-cache.c @@ -1290,6 +1290,8 @@ soup_cache_flush (SoupCache *cache) g_source_destroy (timeout); else g_warning ("Cache flush finished despite %d pending requests", priv->n_pending); + + g_source_unref (timeout); } typedef void (* SoupCacheForeachFileFunc) (SoupCache *cache, const char *name, gpointer user_data); |
