Skip to content

Commit

Permalink
Fix potential memory leak in src/Format.cpp
Browse files Browse the repository at this point in the history
(Merging pull request #233)
  • Loading branch information
orbitcowboy authored and jacksonmj committed Dec 29, 2014
1 parent 236ff08 commit 93eb934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Format.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 93eb934

Please sign in to comment.