Skip to content

Commit

Permalink
Fix reference leak in averageframes wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
myrsloik committed Sep 23, 2021
1 parent a8641a5 commit d945b6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/miscfilters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ static void VS_CC averageFramesCreate(const VSMap *in, VSMap *out, void *userDat
if (vsapi->mapGetError(result)) {
vsapi->mapSetError(out, vsapi->mapGetError(result));
} else {
vsapi->mapSetNode(out, "clip", vsapi->mapGetNode(result, "clip", 0, nullptr), maAppend);
vsapi->mapConsumeNode(out, "clip", vsapi->mapGetNode(result, "clip", 0, nullptr), maAppend);
}
vsapi->freeMap(result);
}
Expand Down

0 comments on commit d945b6b

Please sign in to comment.