Browse Source

app_lua: clean local reload array and shut down

Daniel-Constantin Mierla 12 years ago
parent
commit
222066ba16
1 changed files with 5 additions and 0 deletions
  1. 5 0
      modules/app_lua/app_lua_api.c

+ 5 - 0
modules/app_lua/app_lua_api.c

@@ -357,6 +357,11 @@ void lua_sr_destroy(void)
 		lock_set_dealloc( sr_lua_locks );
 		sr_lua_locks = 0;
 	}
+
+	if(_app_lua_sv!=NULL) {
+		pkg_free(_app_lua_sv);
+		_app_lua_sv = 0;
+	}
 }
 
 /**