From c18f198af8eaf2df2fd68a1445710702b399fbe7 Mon Sep 17 00:00:00 2001 From: HuangRui Date: Tue, 23 Dec 2014 16:24:53 +0800 Subject: [PATCH] Fix the bug of memory release in documents. --- README.md | 1 + lua_modules/ds18b20/ds18b20.CN.md | 2 ++ lua_modules/ds18b20/ds18b20.EN.md | 2 ++ 3 files changed, 5 insertions(+) diff --git a/README.md b/README.md index 55c0ed17..b1258835 100644 --- a/README.md +++ b/README.md @@ -274,5 +274,6 @@ braudrate:9600 print(t.read(nil,t.C)) -- Don't forget to release it after use t = nil + ds18b20 = nil package.loaded["ds18b20"]=nil ``` diff --git a/lua_modules/ds18b20/ds18b20.CN.md b/lua_modules/ds18b20/ds18b20.CN.md index a7fba72d..c6092714 100644 --- a/lua_modules/ds18b20/ds18b20.CN.md +++ b/lua_modules/ds18b20/ds18b20.CN.md @@ -109,6 +109,7 @@ print(t.readNumber(nil,t.F)) t1, t2 = t.readNumber() -- Don't forget to release it after use t = nil +ds18b20 = nil package.loaded["ds18b20"]=nil ``` @@ -151,6 +152,7 @@ print(t.read()) print(t.read(nil,t.C)) -- Don't forget to release it after use t = nil +ds18b20 = nil package.loaded["ds18b20"]=nil ``` ####参见 diff --git a/lua_modules/ds18b20/ds18b20.EN.md b/lua_modules/ds18b20/ds18b20.EN.md index c887dab3..bdf69397 100644 --- a/lua_modules/ds18b20/ds18b20.EN.md +++ b/lua_modules/ds18b20/ds18b20.EN.md @@ -107,6 +107,7 @@ print(t.readNumber(nil,t.F)) t1, t2 = t.readNumber() -- Don't forget to release it after use t = nil +ds18b20 = nil package.loaded["ds18b20"]=nil ``` ####See also @@ -148,6 +149,7 @@ print(t.read()) print(t.read(nil,t.C)) -- Don't forget to release it after use t = nil +ds18b20 = nil package.loaded["ds18b20"]=nil ``` ####See also