Skip to content

Commit e163274

Browse files
authored
fix memory leak of class_copyMethodList (#124)
1 parent 67ed749 commit e163274

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/Runtime.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ struct Runtime {
3737
let name = String(cString: selName)
3838
methods.append(name)
3939
}
40+
methodList?.deallocate()
4041
return methods
4142
}
4243
}

0 commit comments

Comments
 (0)