Skip to content

Commit

Permalink
ChafaPlacement: Unref our image when done
Browse files Browse the repository at this point in the history
  • Loading branch information
hpjansson committed Jan 2, 2024
1 parent 3fa6c31 commit 04f4052
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chafa/chafa-placement.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ chafa_placement_unref (ChafaPlacement *placement)

if (g_atomic_int_dec_and_test (&placement->refs))
{
chafa_image_unref (placement->image);
g_free (placement);
}
}
Expand Down

0 comments on commit 04f4052

Please sign in to comment.