URL: <http://gna.org/bugs/?17716>
Summary: SDL-client blend_surface() does not free mask. Project: Freeciv Submitted by: cazfi Submitted on: Sun 13 Feb 2011 12:06:34 AM EET Category: client-sdl Severity: 3 - Normal Priority: 5 - Normal Status: Ready For Test Assigned to: None Originator Email: Open/Closed: Open Release: Discussion Lock: Any Operating System: None Planned Release: 2.3.0, 2.4.0 _______________________________________________________ Details: Valgrind says: ==13818== 48,089,920 (182,688 direct, 47,907,232 indirect) bytes in 2,076 blocks are definitely lost in loss record 680 of 680 ==13818== at 0x4C244E8: malloc (vg_replace_malloc.c:236) ==13818== by 0x7E92DE1: SDL_CreateRGBSurface (in /usr/lib/libSDL-1.2.so.0.11.3) ==13818== by 0x7E930C6: SDL_ConvertSurface (in /usr/lib/libSDL-1.2.so.0.11.3) ==13818== by 0x7E94F9C: SDL_DisplayFormatAlpha (in /usr/lib/libSDL-1.2.so.0.11.3) ==13818== by 0x49529D: blend_surface (graphics.c:263) ==13818== by 0x406D2B: redraw_unit_info_label (mapview.c:709) ==13818== by 0x407F4C: update_unit_info_label (mapview.c:965) ==13818== by 0x41730C: control_unit_killed (control.c:192) ==13818== by 0x41027A: client_remove_unit (climisc.c:84) ==13818== by 0x435C7F: client_handle_packet (packhand_gen.c:146) ==13818== by 0x40C09D: client_packet_input (client_main.c:566) ==13818== by 0x411384: input_from_server (clinet.c:417) ==13818== by 0x405E03: gui_event_loop (gui_main.c:694) ==13818== by 0x406211: ui_main (gui_main.c:1057) ==13818== by 0x40C529: client_main (client_main.c:509) ==13818== by 0x83C4C4C: (below main) (libc-start.c:228) Attached patch hopefully fixed this. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Sun 13 Feb 2011 12:06:34 AM EET Name: BlendSurfMaskFree.diff Size: 929B By: cazfi <http://gna.org/bugs/download.php?file_id=12416> _______________________________________________________ Reply to this item at: <http://gna.org/bugs/?17716> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev