DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New] Link: http://www.fltk.org/str.php?L2412 Version: 2.0-current OK, I posted a modified arc.cxx, the only changes are in main, to change window from static to allocated. Hopefully, I did that correctly. Run it (on Linux), kill the app by clicking on the close button, main prints "Finished" and glibc detects a double delete. With this test program, my "fix" of commenting out the delete of the copied label no longer works. gcc -I.. arc.cxx -lfltk2 -Wl,--rpath -Wl,/usr/local/lib ./a.out Finished, now delete window *** glibc detected *** ./a.out: double free or corruption (out): 0x00007fff1f5c8c80 *** ======= Backtrace: ========= /lib/libc.so.6(+0x775b6)[0x7fe686e585b6] /lib/libc.so.6(cfree+0x73)[0x7fe686e5ee53] ./a.out[0x401c02] /usr/local/lib/libfltk2.so(_ZN4fltk5Group5clearEv+0x5d)[0x7fe6873e165d] /usr/local/lib/libfltk2.so(_ZN4fltk5GroupD2Ev+0x29)[0x7fe6873e1ee9] /usr/local/lib/libfltk2.so(_ZN4fltk6WindowD0Ev+0x23)[0x7fe687428343] ./a.out[0x401507] /lib/libc.so.6(__libc_start_main+0xfd)[0x7fe686dffc4d] ./a.out[0x401169] <lots more stuff deleted> Link: http://www.fltk.org/str.php?L2412 Version: 2.0-current _______________________________________________ fltk-bugs mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-bugs
