X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ref_counted_frame.cpp;h=3a30eace84cbc184b2a511483d7661e92a6bfb3f;hb=5cb4274907d32fb8946558988461224196c2be59;hp=725291e5574f1035522515cd800c36272f936828;hpb=6796837c2e3e08de8d530be233317a2fc4a43f72;p=nageru diff --git a/ref_counted_frame.cpp b/ref_counted_frame.cpp index 725291e..3a30eac 100644 --- a/ref_counted_frame.cpp +++ b/ref_counted_frame.cpp @@ -1,7 +1,9 @@ #include "ref_counted_frame.h" -void release_refcounted_frame(FrameAllocator::Frame *frame) +void release_refcounted_frame(bmusb::FrameAllocator::Frame *frame) { - frame->owner->release_frame(*frame); + if (frame->owner) { + frame->owner->release_frame(*frame); + } delete frame; }