Permalink
Browse files

Fix potential memory leak in src/Format.cpp

(Merging pull request #233)
  • Loading branch information...
orbitcowboy authored and jacksonmj committed Dec 23, 2014
1 parent 236ff08 commit 93eb9343227f1890bb65cf5eb0fbe22e937774dc
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Format.cpp
@@ -213,7 +213,7 @@ std::vector<char> format::VideoBufferToPPM(const VideoBuffer & vidBuf)
}
data.insert(data.end(), currentRow, currentRow+(vidBuf.Width*3));
}
delete currentRow;
delete [] currentRow;
return data;
}

0 comments on commit 93eb934

Please sign in to comment.