Permalink
Browse files

Fix possible use after free in BitstreamConverter.cpp

  • Loading branch information...
1 parent 20bc4da commit 9dbe48d957ba83286ec331d6fc1773fcd42c57d4 Kyle Hill committed with Kyle Hill Oct 4, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 xbmc/utils/BitstreamConverter.cpp
@@ -535,7 +535,10 @@ void CBitstreamConverter::Close(void)
m_sps_pps_context.sps_pps_data = NULL;
}
if(m_convertBuffer)
+ {
free(m_convertBuffer);
+ m_convertBuffer = NULL;
+ }
m_convertSize = 0;
}

0 comments on commit 9dbe48d

Please sign in to comment.