Sir, I am a new user in fltk application. I have requested accont fltk forum.Still I did not get any notification.
I am using fltk-1.1.6 verstion . In the test code cursor.cxx programme with valgrind. I saw some memory leaks which reported by valgrind. form source- cursor.cxx The cursor sample program valgrind report memeory leak like this The version I use fltk-1.1.6 . ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 3 from 1) ==5714== malloc/free: in use at exit: 81,140 bytes in 991 blocks. ==5714== malloc/free: 10,571 allocs, 9,580 frees, 1,441,118 bytes allocated. ==5714== For counts of detected errors, rerun with: -v ==5714== searching for pointers to 991 not-freed blocks. ==5714== checked 237,848 bytes. ==5714== ==5714== 1,192 bytes in 26 blocks are definitely lost in loss record 77 of 91 ==5714== at 0x4021259: malloc (in /usr/lib/valgrind/x86-linux/vgpreload_memch eck.so) ==5714== by 0x402BAEF: (within /usr/X11R6/lib/libXcursor.so.1.0.2) ==5714== by 0x402C305: (within /usr/X11R6/lib/libXcursor.so.1.0.2) ==5714== by 0x402CD3F: XcursorXcFileLoadImages (in /usr/X11R6/lib/libXcursor. so.1.0.2) ==5714== by 0x402CE3A: XcursorFileLoadImages (in /usr/X11R6/lib/libXcursor.so .1.0.2) ==5714== by 0x402D700: XcursorLibraryLoadImages (in /usr/X11R6/lib/libXcursor .so.1.0.2) ==5714== by 0x402D77A: XcursorShapeLoadImages (in /usr/X11R6/lib/libXcursor.s o.1.0.2) ==5714== by 0x402E052: XcursorTryShapeCursor (in /usr/X11R6/lib/libXcursor.so .1.0.2) ==5714== by 0x40A9161: XCreateGlyphCursor (in /usr/X11R6/lib/libX11.so.6.2) ==5714== by 0x40A95EC: XCreateFontCursor (in /usr/X11R6/lib/libX11.so.6.2) ==5714== by 0x805EE25: Fl_Window::cursor(Fl_Cursor, Fl_Color, Fl_Color) (fl_c ursor.cxx:299) ==5714== by 0x805EFAF: fl_cursor(Fl_Cursor, Fl_Color, Fl_Color) (fl_cursor.cx x:41) ==5714== ==5714== ==5714== 6,321 bytes in 1 blocks are possibly lost in loss record 87 of 91 ==5714== at 0x4021259: malloc (in /usr/lib/valgrind/x86-linux/vgpreload_memch eck.so) ==5714== by 0x40AD1D3: XListFonts (in /usr/X11R6/lib/libX11.so.6.2) ==5714== by 0x806051D: find(int, int) (fl_font_x.cxx:122) ==5714== by 0x80608DC: fl_font(int, int) (fl_font_x.cxx:202) ==5714== by 0x8060E75: fl_normal_label(Fl_Label const*, int, int, int, int, F l_Align) (fl_labeltype.cxx:42) ==5714== by 0x8060B2E: Fl_Label::draw(int, int, int, int, Fl_Align) const (fl _labeltype.cxx:85) ==5714== by 0x8051115: Fl_Menu_Item::draw(int, int, int, int, Fl_Menu_ const* , int) const (Fl_Menu.cxx:223) ==5714== by 0x804E22D: Fl_Choice::draw() (Fl_Choice.cxx:89) ==5714== by 0x804E779: Fl_Group::draw_child(Fl_Widget&) const (Fl_Group.cxx:5 55) ==5714== by 0x804E8AC: Fl_Group::draw_children() (Fl_Group.cxx:525) ==5714== by 0x804E944: Fl_Group::draw() (Fl_Group.cxx:538) ==5714== by 0x8057E69: Fl_Window::draw() (Fl_Window.cxx:99) ==5714== ==5714== LEAK SUMMARY: ==5714== definitely lost: 1,192 bytes in 26 blocks. ==5714== possibly lost: 6,321 bytes in 1 blocks. ==5714== still reachable: 73,627 bytes in 964 blocks. ==5714== suppressed: 0 bytes in 0 blocks.
_______________________________________________ fltk-bugs mailing list fltk-bugs@easysw.com http://lists.easysw.com/mailman/listinfo/fltk-bugs