Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!know!zaphod.mps.ohio-state.edu!wuarchive!julius.cs.uiuc.edu!apple!portal!cup.portal.com!Bits_of_Magic From: Bits_of_Magic@cup.portal.com Newsgroups: comp.sys.amiga.tech Subject: Memory Leak w/ Disk Font Message-ID: <33554@cup.portal.com> Date: 5 Sep 90 07:05:17 GMT Organization: The Portal System (TM) Lines: 21 I am losing memory when I load a disk font. The first time I can understand, since the system maintains the font in memory until it is asked to load another one. But I lose 456 bytes EVERY time I execute the following program (opening and closing of libraries deleted for clarity.) Any ideas? struct TextAttr fontattr = {"myfont.font",5,FS_NORMAL,FPF_PROPORTIONAL}; /* open graphics, intuition and diskfont libraries */ /* get disk font */ myfont = OpenDiskFont(&fontattr); /* close disk font */ if (myfont != NULL) CloseFont(myfont); /* close libraries */ Nicky Robinson