반응형
[FLEX] Memory leak 문제
Flex Memory Leak 해결 방법
public class BarGaugeGrid extends ContentBox { //멤버 변수 private var _barCount:int = 5; private var _dataProvider:ArrayCollection; private var textField:Label; private var valueLabelField:Label; private var itemValues:Array = []; private var dataChanged:Boolean = false; public function BarGaugeGrid() { super(); layout = "vertical"; setStyle("verticalGap", 0); } ... public function destroy():void { _dataProvider = null; textField = null; valueLabelField = null; itemValues = null; } |