Fix the bug of memory release in documents.

This commit is contained in:
HuangRui 2014-12-23 16:24:53 +08:00
parent f21908a65d
commit c18f198af8
3 changed files with 5 additions and 0 deletions

View File

@ -274,5 +274,6 @@ braudrate:9600
print(t.read(nil,t.C)) print(t.read(nil,t.C))
-- Don't forget to release it after use -- Don't forget to release it after use
t = nil t = nil
ds18b20 = nil
package.loaded["ds18b20"]=nil package.loaded["ds18b20"]=nil
``` ```

View File

@ -109,6 +109,7 @@ print(t.readNumber(nil,t.F))
t1, t2 = t.readNumber() t1, t2 = t.readNumber()
-- Don't forget to release it after use -- Don't forget to release it after use
t = nil t = nil
ds18b20 = nil
package.loaded["ds18b20"]=nil package.loaded["ds18b20"]=nil
``` ```
@ -151,6 +152,7 @@ print(t.read())
print(t.read(nil,t.C)) print(t.read(nil,t.C))
-- Don't forget to release it after use -- Don't forget to release it after use
t = nil t = nil
ds18b20 = nil
package.loaded["ds18b20"]=nil package.loaded["ds18b20"]=nil
``` ```
####参见 ####参见

View File

@ -107,6 +107,7 @@ print(t.readNumber(nil,t.F))
t1, t2 = t.readNumber() t1, t2 = t.readNumber()
-- Don't forget to release it after use -- Don't forget to release it after use
t = nil t = nil
ds18b20 = nil
package.loaded["ds18b20"]=nil package.loaded["ds18b20"]=nil
``` ```
####See also ####See also
@ -148,6 +149,7 @@ print(t.read())
print(t.read(nil,t.C)) print(t.read(nil,t.C))
-- Don't forget to release it after use -- Don't forget to release it after use
t = nil t = nil
ds18b20 = nil
package.loaded["ds18b20"]=nil package.loaded["ds18b20"]=nil
``` ```
####See also ####See also