Issue818

Title memleak: editor alert window
Priority minor Status resolved
Assigned To fluzz Keywords
Linked issues Watchers fluzz

Submitted on 2015-06-03 19h50 by matthiaskrgr, last changed by fluzz.

Messages
Author: matthiaskrgr Date: 2015-06-03   19h50
if you zoom out a bit an go to the level border, then start drawing a wall,
leave the current level with the cursor, and then re-enter the level, (basically
try painting the row of walls outside of your current level), a warning message
will pop up warning about invalid obstacle coords, and there will also be a
memleak related to this (warning message, I suppose).

(note that this ticket is only about the memleak, not the message itself)

Direct leak of 16 byte(s) in 1 object(s) allocated from:
    #0 0x7f129378cb79 in __interceptor_calloc
/build/gcc-multilib/src/gcc-5-20150519/libsanitizer/asan/asan_malloc_linux.cc:54
    #1 0x4e4862 in MyMalloc /home/matthias/vcs/git/freedroid/src/text_public.c:68
    #2 0x4e4db7 in _first_use_of_msg
/home/matthias/vcs/git/freedroid/src/text_public.c:141
    #3 0x4e5cd8 in alert_once_window
/home/matthias/vcs/git/freedroid/src/text_public.c:338
    #4 0x58a15c in add_obstacle /home/matthias/vcs/git/freedroid/src/obstacle.c:163
    #5 0x5e073b in add_wall lvledit/lvledit_tool_place.c:346
    #6 0x5e17d6 in line_moving_forwards lvledit/lvledit_tool_place.c:560
    #7 0x5e1ab0 in handle_wall_line lvledit/lvledit_tool_place.c:604
    #8 0x5e2561 in leveleditor_place_input lvledit/lvledit_tool_place.c:704
    #9 0x5ee19d in forward_event lvledit/lvledit_widget_map.c:53
    #10 0x5ee4e2 in map_mousemove lvledit/lvledit_widget_map.c:69
    #11 0x5ee7d6 in map_handle_event lvledit/lvledit_widget_map.c:121
    #12 0x58f2c8 in group_mouse_event widgets/widget_group.c:89
    #13 0x58f8e8 in widget_group_handle_event widgets/widget_group.c:183
    #14 0x58cd3a in handle_widget_event widgets/widgets.c:281
    #15 0x50b213 in input_handle /home/matthias/vcs/git/freedroid/src/input.c:135
    #16 0x5b77dc in leveleditor_process_input lvledit/lvledit_input.c:186
    #17 0x5a22f2 in LevelEditor lvledit/lvledit.c:282
    #18 0x514bb7 in main /home/matthias/vcs/git/freedroid/src/main.c:188
    #19 0x7f129113d78f in __libc_start_main (/usr/lib/libc.so.6+0x2078f)


f96377ec3b90dfacc5dcd3b19a9232f8998a71b7
Author: fluzz Date: 2015-06-04   12h32
Fixed in commit 170c84278b02b7790ae79c374a40d512066a56d8
History
Date User Action Args
2015-06-04 12:32:09fluzzsetstatus: open -> resolved
assignedto: fluzz
messages: + msg3191
nosy: + fluzz
2015-06-03 19:50:35matthiaskrgrcreate