views: Instrument and fix reference leaks

This commit is contained in:
Georges Basile Stavracas Neto
2018-01-28 12:08:04 -02:00
parent 58b3340736
commit 194407ecfb
6 changed files with 48 additions and 17 deletions
+2
View File
@@ -157,6 +157,8 @@ destroy_event_cache_map (void)
{
GList *events;
g_debug ("Number of cached events at destruction: %d", g_hash_table_size (event_cache));
/* Destroy all events */
events = g_hash_table_get_values (event_cache);
g_list_free_full (events, g_object_unref);