Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions libnemo-private/nemo-icon-container.c
Original file line number Diff line number Diff line change
Expand Up @@ -5265,16 +5265,17 @@ nemo_icon_container_clear (NemoIconContainer *container)

details->ok_to_load_deferred_attrs = FALSE;

for (p = details->icons; p != NULL; p = p->next) {
icon_free (p->data);
}
g_list_free (details->icons);
GList *icons_to_free = details->icons;
details->icons = NULL;
Comment thread
leigh123linux marked this conversation as resolved.
g_list_free (details->new_icons);
details->new_icons = NULL;
g_hash_table_destroy (details->icon_set);
details->icon_set = g_hash_table_new (g_direct_hash, g_direct_equal);
Comment thread
leigh123linux marked this conversation as resolved.
Comment on lines +5272 to +5273

g_hash_table_destroy (details->icon_set);
details->icon_set = g_hash_table_new (g_direct_hash, g_direct_equal);
for (p = icons_to_free; p != NULL; p = p->next) {
icon_free (p->data);
}
g_list_free (icons_to_free);
}

gboolean
Expand Down
Loading