STR #21

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]

Return to Bugs & Features | Roadmap 2.0 | Post Text | Post File | SVN ⇄ GIT ]

STR #21

Application:FLTK Library
Status:4 - Pending
Priority:2 - Low, e.g. a documentation error or undocumented side-effect
Scope:2 - Specific to an operating system
Summary:(XWindow) Memory leak in Window::copy_label()
Created By:evol.uni-koblenz
Assigned To:spitzak
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

Post File ]

No files

Trouble Report Comments:

Post Text ]
Name/Time/Date Text top right image
#1 evol.uni-koblenz
06:08 Apr 28, 2003
Calling Window::copy_label() forces:

Window::copy_label() calls Widget::copy_label(label) private copy and set flag COPIED_LABEL
                  then calls Window::label(label)  
Window::label(label)  calls Window::(label(name,iconlabel()))
Window::(label(name,iconlabel())) calls Widget::label(label)

and then.....

Widget::label(label) frees the copied string and set the freed string again as label. Under some circumstances you will get a strange window label.

I'ved commented out the last call of Widget::label() in Fl_x.cxx Window::setlabel(label,icon), but i really don't know what side effects this will produce....
#2 spitzak
14:30 May 15, 2003
It's trying to execute the code that tells the OS to change the window title, but I can certainly see that the current solution is not correct.
#3 mike
16:17 Mar 12, 2005

Bill, has this been fixed?
bottom left image   bottom right image

Return to Bugs & Features | Post Text | Post File ]


Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to ''.