shithub: h264bsd

Download patch

ref: 7e763ab5cefe154884d38dc5c0d6c40b7624f7d2
parent: 56782172bd590df0ddbbe49926fd10761383248b
author: Matthew Stephure <matt.stephure@calgaryscientific.com>
date: Mon Jun 16 12:22:42 EDT 2014

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]);