fix: memory leak

This commit is contained in:
langhuihui
2023-09-15 14:23:59 +08:00
parent 4a5ba9b834
commit df9c5a69cc
3 changed files with 11 additions and 20 deletions

View File

@@ -32,9 +32,7 @@ func (conf *RTSPConfig) OnSessionOpen(ctx *gortsplib.ServerHandlerOnSessionOpenC
func (conf *RTSPConfig) OnSessionClose(ctx *gortsplib.ServerHandlerOnSessionCloseCtx) {
RTSPPlugin.Debug("session closed")
// if p, ok := conf.LoadAndDelete(ctx.Session); ok {
// p.(IIO).Stop()
// }
conf.Delete(ctx.Session)
}
// called after receiving a DESCRIBE request.