Age | Commit message (Collapse) | Author |
|
and suppress the 'This is a XXX' message if not enabled
|
|
|
|
|
|
Building Kodi with asan+lsan+ubsan breaks with the following error:
=================================================================
==241706==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 69370335 byte(s) in 661 object(s) allocated from:
#0 0x7fb290a737a7 in operator new[](unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.6+0xab7a7)
#1 0x563e2bed8b09 in PNGDecoder::LoadFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, DecodedFrames&) (/build/kodi-18.8+dfsg1/kodi_build_x11/build/texturepacker/TexturePacker+0x17cb09)
#2 0x563e2be71392 in DecoderManager::LoadFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, DecodedFrames&) (/build/kodi-18.8+dfsg1/kodi_build_x11/build/texturepacker/TexturePacker+0x115392)
#3 0x563e2be7d1bf in createBundle(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, double, unsigned int, bool) (/build/kodi-18.8+dfsg1/kodi_build_x11/build/texturepacker/TexturePacker+0x1211bf)
#4 0x563e2be69990 in main (/build/kodi-18.8+dfsg1/kodi_build_x11/build/texturepacker/TexturePacker+0x10d990)
#5 0x7fb28fbc7cc9 in __libc_start_main ../csu/libc-start.c:308
SUMMARY: AddressSanitizer: 69370335 byte(s) leaked in 661 allocation(s).
The root cause of the leak is decoder's FreeDecodedFrames never called.
This commit fixes the leak by refactoring the following aspects:
* Introducing the pointer to decoder object in the decoded frame,
* Changing IDecoder::FreeDecodedFrames to IDecoder::FreeDecodedFrame
cleaning single frame at a time
* Moving iteration over frames to DecoderManager::FreeDecodedFrames
* Removing unnecessary DecodedFrames.user
Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
|
|
TexturePacker: fix for 32-bit systems
|
|
|
|
Updates most dependencies to latest version
Fixes the store build by fixing python
Enables pillow and pycryptodome again on windows
Replaces easyhook with detours
|
|
|
|
|
|
|
|
|
|
TexturePacker: Fix memory / resource leak the ugly way
|
|
|
|
|
|
|
|
|
|
|
|
|
|
I used the command
grep --include={\*.cpp,\*.h} -rnl './' -e "http://xbmc.org" | xargs -i@ sed -i 's/http\:\/\/xbmc\.org/http\:\/\/kodi\.tv/g' @
to change every http://xbmc.org to http://kodi.tv in *.cpp and *.h files
|
|
- remove unused function definitions
- use char directly instead of a typedefs to char
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lzo in lib folder
make lzo non-optional (thanks Stefan Saraev)
Packaged a new build of texturepacker
|
|
Kodi itself depends on gcc >= 4.7 due to its use of the C++11 standard.
When cross-compiling the host gcc currently also needs to be >= 4.7 due
to the texturepacker tool being needed as native binary to compile
Textures.xbt for the target system.
Cross-compiling on a system where host gcc is at version 4.6 fails atm
with this error:
cc1plus: error: unrecognized command line option '-std=c++11'
make[4]: *** [md5.o] Error 1
make[4]: *** Waiting for unfinished jobs....
cc1plus: error: unrecognized command line option '-std=c++11'
cc1plus: error: unrecognized command line option '-std=c++11'
make[4]: *** [DecoderManager.o] Error 1
make[4]: *** [XBTFWriter.o] Error 1
cc1plus: error: unrecognized command line option '-std=c++11'
make[4]: *** [TexturePacker.o] Error 1
cc1plus: error: unrecognized command line option '-std=c++11'
make[4]: *** [decoder/PNGDecoder.o] Error 1
make[3]: *** [all] Error 2
make[2]: *** [native/TexturePacker] Error 2
Using this patch the problem is fixed and a working TexturePacker host
binary is created.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Build systems should not hardcode `pkg-config` anywhere. The pkg-config
m4 files already have a standard $PKG_CONFIG variable for people.
|
|
|
|
|
|
instead of garbage
|
|
|
|
|
|
|
|
|
|
|