Skip to content

Commit

Permalink
background: fix crash on reset
Browse files Browse the repository at this point in the history
Fixes #219
  • Loading branch information
ammen99 committed Mar 13, 2024
1 parent c70792f commit 7f8f562
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/background/background.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,11 @@ WayfireBackground::WayfireBackground(WayfireShellApp *app, WayfireOutput *output
});
}

WayfireBackground::~WayfireBackground()
{
reset_background();
}

class WayfireBackgroundApp : public WayfireShellApp
{
std::map<WayfireOutput*, std::unique_ptr<WayfireBackground>> backgrounds;
Expand Down
1 change: 1 addition & 0 deletions src/background/background.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ class WayfireBackground
public:
WayfireBackground(WayfireShellApp *app, WayfireOutput *output);
bool change_background();
~WayfireBackground();
};

0 comments on commit 7f8f562

Please sign in to comment.