Browse code

app_lua: clean local reload array and shut down

Daniel-Constantin Mierla authored on 29/03/2013 11:19:36
Showing 1 changed files
... ...
@@ -357,6 +357,11 @@ void lua_sr_destroy(void)
357 357
 		lock_set_dealloc( sr_lua_locks );
358 358
 		sr_lua_locks = 0;
359 359
 	}
360
+
361
+	if(_app_lua_sv!=NULL) {
362
+		pkg_free(_app_lua_sv);
363
+		_app_lua_sv = 0;
364
+	}
360 365
 }
361 366
 
362 367
 /**