Update of /cvsroot/plplot/plplot/drivers
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32246/drivers
Modified Files:
aqt.c
Log Message:
fixed memory leak caused by a failure to periodically free the ObjC auto-release pool
Index: aqt.c
===================================================================
RCS file: /cvsroot/plplot/plplot/drivers/aqt.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- aqt.c 22 May 2005 23:40:42 -0000 1.14
+++ aqt.c 13 Nov 2005 19:33:59 -0000 1.15
@@ -322,7 +322,10 @@
void plD_eop_aqt(PLStream *pls)
{
- [adapter renderPlot];
+ [arpool release]; // prevents a memory leak by freeing everything in
+ // the auto-release pool when the plot is closed.
+ arpool = [[NSAutoreleasePool alloc] init];
+ [adapter renderPlot];
}
//---------------------------------------------------------------------
|