Skip to content

Commit

Permalink
configurator_plugin_list.c: Fix segmentation fault when reordering pl…
Browse files Browse the repository at this point in the history
…ugins
  • Loading branch information
wandrien committed May 20, 2024
1 parent f57d497 commit 74f6ebf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libconfigurator/configurator_plugin_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ static void on_moveup_plugin( GtkButton* btn, GtkTreeView* view )
{
panel->plugins = g_list_insert( panel->plugins, pl, i - 1);
panel->plugins = g_list_delete_link( panel->plugins, l);
break;
}
}
if( pl->pwid )
Expand Down Expand Up @@ -439,6 +440,7 @@ static void on_movedown_plugin( GtkButton* btn, GtkTreeView* view )
{
panel->plugins = g_list_insert( panel->plugins, pl, i + 2);
panel->plugins = g_list_delete_link( panel->plugins, l);
break;
}
}
if( pl->pwid )
Expand Down

0 comments on commit 74f6ebf

Please sign in to comment.