Skip to content

Commit 42af4ca

Browse files
authored
Merge pull request #237 from chad3814/leak-fix
plug another small leak
2 parents 937089a + fab70dd commit 42af4ca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/FFmpegReader.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,6 +1038,8 @@ int FFmpegReader::GetNextPacket() {
10381038
// Update current packet pointer
10391039
packet = next_packet;
10401040
}
1041+
else
1042+
delete next_packet;
10411043
}
10421044
// Return if packet was found (or error number)
10431045
return found_packet;

0 commit comments

Comments
 (0)