Skip to content

Possible memory leak #4

Description

@Wohlstand

Once upon I ran my game with the use of the Address-Sanitiser, and it does report еру туче:

Indirect leak of 48 byte(s) in 1 object(s) allocated from:
    #0 0x7f61184acd3f in operator new(unsigned long, std::nothrow_t const&) (/usr/lib/x86_64-linux-gnu/libasan.so.5+0x10fd3f)
    #1 0xc89e6e in FreeImage_AllocateBitmap /home/vitaly/_git_repos/a2xtech/build-a2xtech-InSystem_Qt_5-Debug/external/FreeImage/src/FreeImage_Local/Source/FreeImage/BitmapAccess.cpp:418
    #2 0xc8a0c1 in FreeImage_AllocateHeaderT /home/vitaly/_git_repos/a2xtech/build-a2xtech-InSystem_Qt_5-Debug/external/FreeImage/src/FreeImage_Local/Source/FreeImage/BitmapAccess.cpp:477
    #3 0xc8a4f7 in FreeImage_Clone /home/vitaly/_git_repos/a2xtech/build-a2xtech-InSystem_Qt_5-Debug/external/FreeImage/src/FreeImage_Local/Source/FreeImage/BitmapAccess.cpp:556
    #4 0xca56f2 in FreeImage_ConvertTo32Bits /home/vitaly/_git_repos/a2xtech/build-a2xtech-InSystem_Qt_5-Debug/external/FreeImage/src/FreeImage_Local/Source/FreeImage/Conversion32.cpp:204
    #5 0xad259e in GraphicsHelps::loadImage(std::vector<char, std::allocator<char> >&, bool) ../lib/Graphics/graphics_funcs.cpp:142
    #6 0xad3233 in GraphicsHelps::mergeWithMask(FIBITMAP*, std::vector<char, std::allocator<char> >&, bool) ../lib/Graphics/graphics_funcs.cpp:265
    #7 0x880520 in FrmMain::lazyLoad(StdPicture&) ../src/frm_main.cpp:1028
    #8 0x8860d4 in FrmMain::renderTextureI(int, int, int, int, StdPicture&, int, int, double, SDL_Point*, unsigned int, float, float, float, float) ../src/frm_main.cpp:1609
    #9 0x88767a in FrmMain::renderTexture(double, double, double, double, StdPicture&, int, int, float, float, float, float) ../src/frm_main.cpp:1709
    #10 0x6ac432 in UpdateGraphics(bool) ../src/graphics/gfx_update.cpp:1132
    #11 0x51df13 in GameLoop() ../src/main/game_loop.cpp:118
    #12 0x4e5a26 in runFrameLoop(void (*)(), void (*)(), std::function<bool ()>, std::function<bool ()>, std::function<void ()>, std::function<void ()>) ../src/frame_timer.cpp:404
    #13 0x422af0 in GameMain(CmdLineSetup_t const&) ../src/game_main.cpp:698
    #14 0x81a371 in main ../src/main.cpp:347
    #15 0x7f61175850b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions