handles: correctly initialize all members
This commit is contained in:
parent
7750e85fd1
commit
bde012f3d4
|
@ -16,6 +16,7 @@ type HandleList struct {
|
||||||
func NewHandleList() *HandleList {
|
func NewHandleList() *HandleList {
|
||||||
return &HandleList{
|
return &HandleList{
|
||||||
handles: make([]interface{}, 5),
|
handles: make([]interface{}, 5),
|
||||||
|
set: make(map[uintptr]bool),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue