X-Git-Url: https://git.sesse.net/?p=nageru;a=blobdiff_plain;f=ref_counted_frame.cpp;h=07990179549c91128668e6119cd519873b46ec6e;hp=725291e5574f1035522515cd800c36272f936828;hb=refs%2Fheads%2Fffmpeg-audio-only;hpb=6796837c2e3e08de8d530be233317a2fc4a43f72 diff --git a/ref_counted_frame.cpp b/ref_counted_frame.cpp index 725291e..0799017 100644 --- a/ref_counted_frame.cpp +++ b/ref_counted_frame.cpp @@ -1,7 +1,11 @@ #include "ref_counted_frame.h" -void release_refcounted_frame(FrameAllocator::Frame *frame) +#include + +void release_refcounted_frame(bmusb::FrameAllocator::Frame *frame) { - frame->owner->release_frame(*frame); + if (frame->owner) { + frame->owner->release_frame(*frame); + } delete frame; }