libtcod / python-tcod

A high-performance Python port of libtcod. Includes the libtcodpy module for backwards compatibility with older projects.
BSD 2-Clause "Simplified" License
410 stars 36 forks source link

Window Title incorrect #99

Closed Darky-Lucera closed 3 years ago

Darky-Lucera commented 3 years ago

I notice that with the last update tcod 11.16.0 the window title appears with bad format. Curiously the result is different every time, and it is always bad independently of using tcod.context.new_terminal() or tcod.context.new().

Probably some kind of bad/free pointer...

HexDecimal commented 3 years ago

This could explain some other issues which have been happening on MacOS, but I haven't been able to reproduce anything myself.

What is your current OS?

HexDecimal commented 3 years ago

I discovered a dangling string pointer on the Python side. The latest release 11.16.1 should work correctly.

HexDecimal commented 3 years ago

Thanks for posting this issue. I had to look at this multiple times before I could find anything.

Darky-Lucera commented 3 years ago

Thank you!