Skip to content

Commit

Permalink
Finally fix the memory bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
nixxquality committed May 19, 2014
1 parent a269283 commit ecffeb2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions FFMSsharp/Indexer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ private Index Index(int AudioIndexMask, int AudioDumpMask, IndexErrorHandling In
index = NativeMethods.FFMS_DoIndexing(handle, AudioIndexMask, AudioDumpMask, AudioNameCallback, IntPtr.Zero, (int)IndexErrorHandling, IndexingCallback, IntPtr.Zero, ref err);
}

handle.SetHandleAsInvalid(); // "Note that calling this function destroys the FFMS_Indexer object and frees the memory allocated by FFMS_CreateIndexer (even if indexing fails for any reason)."
isIndexing = false;

if (index.IsInvalid)
Expand Down

0 comments on commit ecffeb2

Please sign in to comment.