Skip to content

Commit

Permalink
background: free old image after transition (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
trigg authored Apr 25, 2024
1 parent 250f564 commit 37beec0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/background/background.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ bool BackgroundDrawingArea::on_draw(const Cairo::RefPtr<Cairo::Context>& cr)
if (fade.running())
{
queue_draw();
} else
{
from_image.source.clear();
}

cr->save();
Expand Down

0 comments on commit 37beec0

Please sign in to comment.