We should probably free the memory we allocate. Sounds like a winning
strategy.
static gint32
subdivide_infos (GByteArray *array, GList *infos, gint32 parent_offset)
{
- GHashTable *ht = gtk_css_selectors_count_initial_init ();
+ GHashTable *ht;
GList *l;
GList *matched;
GList *remaining;
if (infos == NULL)
return GTK_CSS_SELECTOR_TREE_EMPTY_OFFSET;
+ ht = gtk_css_selectors_count_initial_init ();
+
for (l = infos; l != NULL; l = l->next)
{
info = l->data;
g_list_free (matched);
g_list_free (remaining);
+ g_hash_table_free (ht);
return tree_offset;
}