Skip to content

WIP: nemo-icon-container: steal icon list before destruction to prevent re…#3775

Open
leigh123linux wants to merge 1 commit into
linuxmint:masterfrom
leigh123linux:nemo-icon-container-crash
Open

WIP: nemo-icon-container: steal icon list before destruction to prevent re…#3775
leigh123linux wants to merge 1 commit into
linuxmint:masterfrom
leigh123linux:nemo-icon-container-crash

Conversation

@leigh123linux
Copy link
Copy Markdown
Member

…-entrant crash

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts nemo_icon_container_clear() to detach the icon list before destroying icon items, aiming to avoid re-entrant crashes during icon destruction.

Changes:

  • Stores the current icon list in a local variable before clearing details->icons.
  • Frees details->new_icons before destroying the stolen icon list.
  • Destroys icons from the saved list and then frees that list.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread libnemo-private/nemo-icon-container.c
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread libnemo-private/nemo-icon-container.c
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants