fix memory error.

This commit is contained in:
Miroslav Šedivý
2021-07-27 21:17:03 +02:00
parent 767566d40d
commit 6b8e77d20a
+4 -2
View File
@@ -472,8 +472,10 @@ func (manager *RoomManagerCtx) GetSettings(id string) (*types.RoomSettings, erro
var browserPolicy *types.BrowserPolicy
if labels.BrowserPolicy != nil {
browserPolicy.Type = labels.BrowserPolicy.Type
browserPolicy.Path = labels.BrowserPolicy.Path
browserPolicy = &types.BrowserPolicy{
Type: labels.BrowserPolicy.Type,
Path: labels.BrowserPolicy.Path,
}
var policyMount *types.RoomMount
for _, mount := range mounts {