Skip to content
Prev Previous commit
Next Next commit
review followup: remove unnecessary lambda
  • Loading branch information
phlash committed Aug 21, 2021
commit 9407bb2b03e6d2bf8eedb93fbd2d0ef810a60203
2 changes: 1 addition & 1 deletion app/background.cc
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ static void drop_background(background_t *pbkd) {

std::shared_ptr<background_t> load_background(const char *path, int debug) {
// allocate a shared pointer around storage for the handle, associate custom deleter to clean up when eventually released
auto pbkd = std::shared_ptr<background_t>(new background_t, [](background_t *p) { drop_background(p); });
auto pbkd = std::shared_ptr<background_t>(new background_t, drop_background);
try {
pbkd->dbg = debug;
pbkd->vid = false;
Expand Down