Merge remote-tracking branch 'tor-github/pr/1422' into maint-0.3.5

This commit is contained in:
teor
2019-11-25 12:34:29 +10:00
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -137,6 +137,11 @@ periodic_event_destroy(periodic_event_item_t *event)
{
if (!event)
return;
/* First disable the event so we first cancel the event and set its enabled
* flag properly. */
periodic_event_disable(event);
mainloop_event_free(event->ev);
event->last_action_time = 0;
}