Merge "AST-2018-005: Fix tdata leaks when calling pjsip_endpt_send_response(2)"
[asterisk/asterisk.git] / apps / app_stack.c
index 1f98378..4560865 100644 (file)
@@ -1278,7 +1278,7 @@ static int unload_module(void)
 {
        ast_install_stack_functions(NULL);
 
-       ast_agi_unregister(ast_module_info->self, &gosub_agi_command);
+       ast_agi_unregister(&gosub_agi_command);
 
        ast_unregister_application(app_return);
        ast_unregister_application(app_pop);