On Fri, Jun 08, 2001 at 09:06:56AM -0400, Dan Espen wrote:
> Andrey Panov <[EMAIL PROTECTED]> writes:
> > 
> > It seems that opening of new window increases fvwm's memory size
> > by 10-20Kb and memory is not freed after closing of the window.
> 
> This looks suspicious in add_window.c line 347:
> 
> static void destroy_icon_font(FvwmWindow *tmp_win)
> {
>   if (IS_ICON_FONT_LOADED(tmp_win) && !USING_DEFAULT_ICON_FONT(tmp_win) &&
>       tmp_win->title_font.font != Scr.DefaultFont.font)
>   {
>     FreeFvwmFont(dpy, &(tmp_win->icon_font));
>   }
>   SET_ICON_FONT_LOADED(tmp_win, 0);
>   /* Fall back to default font (see comment above). */
>   tmp_win->icon_font = Scr.DefaultFont;
>   SET_USING_DEFAULT_ICON_FONT(tmp_win, 1);
> }
> 
> Try changing title_font to icon_font.
> I have some work to do and can't check it myself until later.

This could lead to a core dump, but I don't see how this can be a
memory leak.  Fvwm does never load fonts more than once.

Bye

Dominik ^_^  ^_^

--
Dominik Vogt, email: [EMAIL PROTECTED]
LifeBits Aktiengesellschaft, Albrechtstr. 9, D-72072 Tuebingen
fon: ++49 (0) 7071/7965-0, fax: ++49 (0) 7071/7965-20
--
Visit the official FVWM web page at <URL:http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm-workers" in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to