Skip to content

Commit

Permalink
Add HiresScroll destructor
Browse files Browse the repository at this point in the history
  • Loading branch information
PixlOne committed Aug 22, 2020
1 parent b554d32 commit a8e2ecb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/logid/features/HiresScroll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ HiresScroll::HiresScroll(Device *dev) : DeviceFeature(dev), _config(dev)
_last_scroll = std::chrono::system_clock::now();
}

HiresScroll::~HiresScroll()
{
_device->hidpp20().removeEventHandler(MOVE_EVENTHANDLER_NAME);
}

void HiresScroll::configure()
{
auto mode = _hires_scroll->getMode();
Expand Down
1 change: 1 addition & 0 deletions src/logid/features/HiresScroll.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ namespace features
{
public:
explicit HiresScroll(Device* dev);
~HiresScroll();
virtual void configure();
virtual void listen();

Expand Down

0 comments on commit a8e2ecb

Please sign in to comment.