#9458: Memory leak in BMediaFile -> BMediaTrack
--------------------------+------------------------------------------------
Reporter: Robert S. | Owner: leavengood
Type: bug | Status: assigned
Priority: normal | Milestone: R1
Component: Kits/Media | Version: R1/Development
Kit |
Resolution: | Keywords: BMediaFile BMediaTrack memory leak
Blocked By: | Blocking:
Platform: All |
--------------------------+------------------------------------------------
Comment (by pulkomandy):
Well this change only helps in an error case, I don't think it will make
the situation actually better.
For the test program to actually work properly you need to set a
colorspace. It's trying to get one from BScreen but it can't because there
is no BApplication. I just changed the constructor for {{{fColor_space =
B_RGB32;}}}
My explanation was for these two lines:
{{{
0x172636e (lookup failed: Invalid Argument)
0x1b259d4 (lookup failed: Invalid Argument)
}}}
I don't know about the "nearest" ones, but it doesn't really matter, these
are inside the memory allocator and it's not really important which path
is used there.
I tried to debug with Debugger (setting a breakpoint in posix_memalign) as
well but it seems even there I can't reliably get a backtrace inside
ffmpeg, making it harder to track where allocations happen.
--
Ticket URL: <https://dev.haiku-os.org/ticket/9458#comment:15>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.