Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
Added pointer check to autocomplete item memory freeing to avoid wron…
Browse files Browse the repository at this point in the history
…gful access (lib)
  • Loading branch information
IndrekV committed Feb 9, 2018
1 parent 577a2c6 commit c92d99f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/toggl_api_private.cc
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ void autocomplete_item_clear(TogglAutocompleteView *item) {
if (item->Next) {
TogglAutocompleteView *next =
reinterpret_cast<TogglAutocompleteView *>(item->Next);
poco_check_ptr(next);
autocomplete_item_clear(next);
item->Next = nullptr;
}
Expand Down

0 comments on commit c92d99f

Please sign in to comment.