]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
missed a spot
authorAnthony Minessale <anthm@freeswitch.org>
Sat, 11 Dec 2010 16:41:34 +0000 (10:41 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Sat, 11 Dec 2010 16:41:34 +0000 (10:41 -0600)
src/switch_core_session.c

index 2567d177129ae4e512a2e5260b91dc1810a1497d..c2766170a81a21d4ca93548ab93d93f88e2267f4 100644 (file)
@@ -1118,6 +1118,11 @@ SWITCH_DECLARE(void) switch_core_session_perform_destroy(switch_core_session_t *
        }
        switch_mutex_unlock(runtime.session_hash_mutex);
 
+       if ((*session)->plc) {
+               plc_free((*session)->plc);
+               (*session)->plc = NULL;
+       }
+
        if (switch_event_create(&event, SWITCH_EVENT_CHANNEL_DESTROY) == SWITCH_STATUS_SUCCESS) {
                switch_channel_event_set_data((*session)->channel, event);
                switch_event_fire(&event);