summaryrefslogtreecommitdiff
path: root/res/res_stasis_websocket.c
diff options
context:
space:
mode:
Diffstat (limited to 'res/res_stasis_websocket.c')
-rw-r--r--res/res_stasis_websocket.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/res/res_stasis_websocket.c b/res/res_stasis_websocket.c
index 4cf5b9498..50fec0625 100644
--- a/res/res_stasis_websocket.c
+++ b/res/res_stasis_websocket.c
@@ -263,6 +263,7 @@ static int load_module(void)
{
int r = 0;
+ stasis_app_ref();
oom_json = ast_json_pack("{s: s}",
"error", "OutOfMemory");
if (!oom_json) {
@@ -277,6 +278,7 @@ static int unload_module(void)
{
int r = 0;
+ stasis_app_unref();
ast_json_unref(oom_json);
oom_json = NULL;
r |= ast_websocket_remove_protocol(ws_protocol, websocket_callback);