shithub: h264bsd

Download patch

ref: c509757cc44c3bee93c02df77134df086a5084da
parent: 56782172bd590df0ddbbe49926fd10761383248b
parent: 7e763ab5cefe154884d38dc5c0d6c40b7624f7d2
author: Sam Leitch <sam@nugger.net>
date: Thu Dec 11 07:51:16 EST 2014

Merge pull request #2 from oneam/mem-cleanup

Proper guard on freeStorage

--- a/flex/src/h264bsd/Decoder.as
+++ b/flex/src/h264bsd/Decoder.as
@@ -283,7 +283,7 @@
         }
         
         private function freeStorage():void {
-            if(_storagePtr != 0) return;
+            if(_storagePtr == 0) return;
             
             CModule.callI(_h264bsdShutdown, new <int>[this._storagePtr]);
             CModule.callI(_h264bsdFree, new <int>[this._storagePtr]);