File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/com/pivotshare/hls/loader Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -83,11 +83,12 @@ package com.pivotshare.hls.loader {
8383 * @method close
8484 */
8585 public function close () : void {
86+
8687 if (_fragmentURLStream && _fragmentURLStream . connected ) {
8788 _fragmentURLStream . close ();
8889 }
8990
90- if (_fragment ) {
91+ if (_fragment && _fragment . data ) {
9192
9293 if (_fragment . data . decryptAES) {
9394 _fragment . data . decryptAES. cancel ();
@@ -96,8 +97,10 @@ package com.pivotshare.hls.loader {
9697
9798 // Explicitly release memory
9899 // http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/utils/ByteArray.html#clear()
99- _fragment . data . bytes . clear ();
100- _fragment . data . bytes = null ;
100+ if (_fragment . data . bytes ) {
101+ _fragment . data . bytes . clear ();
102+ _fragment . data . bytes = null ;
103+ }
101104 }
102105 }
103106
You can’t perform that action at this time.
0 commit comments