diff options
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_skinny.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_skinny.c b/channels/chan_skinny.c index 6045a09f0..f8f532829 100644 --- a/channels/chan_skinny.c +++ b/channels/chan_skinny.c @@ -8571,6 +8571,9 @@ int skinny_reload(void) We do not want to free the line here, that will happen below. */ while ((l = AST_LIST_REMOVE_HEAD(&d->lines, list))) { + if (l->mwi_event_sub) { + l->mwi_event_sub = stasis_unsubscribe(l->mwi_event_sub); + } } /* Delete all speeddials for this device */ while ((sd = AST_LIST_REMOVE_HEAD(&d->speeddials, list))) { |