summaryrefslogtreecommitdiff
path: root/libsoup/cache
diff options
context:
space:
mode:
authorPatrick Griffis <pgriffis@igalia.com>2020-11-13 13:10:08 -0600
committerPatrick Griffis <pgriffis@igalia.com>2020-11-13 13:10:08 -0600
commitcafdabc8c47027c2a122f8e200cf32f2ee266c63 (patch)
tree710aeca8b932fb6ee9f9e5248b27b2e4d07e3e79 /libsoup/cache
parent876b7417e62d40bc977272bd4adc12e73447bb0b (diff)
downloadlibsoup-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.c2
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);