Skip to content

Commit

Permalink
add destructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Habbie committed Mar 11, 2024
1 parent 2054de7 commit 1872722
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/uicomponents/uirgblight.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
class LVObj {
public:
LVObj(lv_obj_t* _obj) : obj{_obj} {};
~LVObj() {
lv_obj_del(obj);
}

operator lv_obj_t*() { return obj; };

Expand Down

0 comments on commit 1872722

Please sign in to comment.