Skip to content

Commit

Permalink
Fix tig_palette_destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbatalov committed Nov 20, 2024
1 parent d38f580 commit 9f81178
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/palette.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ void tig_palette_destroy(TigPalette palette)
{
TigPaletteListNode* node;

node = (TigPaletteListNode*)((unsigned char*)palette - sizeof(TigPaletteListNode*));
node = *(TigPaletteListNode**)((unsigned char*)palette - sizeof(TigPaletteListNode*));
node->next = tig_palette_head;
tig_palette_head = node;
}
Expand Down

0 comments on commit 9f81178

Please sign in to comment.