From 334461d34f06621e2d984c1dc6c304ce86681d5a Mon Sep 17 00:00:00 2001 From: ZhihengCV <469169651@qq.com> Date: Sat, 28 Nov 2015 11:13:40 +0800 Subject: [PATCH] solve the memory leak problem of web-demo --- demos/web/server.py | 1 + 1 file changed, 1 insertion(+) diff --git a/demos/web/server.py b/demos/web/server.py index f7c4ea8..8d2d5d4 100755 --- a/demos/web/server.py +++ b/demos/web/server.py @@ -355,6 +355,7 @@ class OpenFaceServerProtocol(WebSocketServerProtocol): "type": "ANNOTATED", "content": content } + plt.close() self.sendMessage(json.dumps(msg)) if __name__ == '__main__':