[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] gzz/gfx demo/xupdf.py libutil/ObjectStorer.hxx
From: |
Tuomas J. Lukka |
Subject: |
[Gzz-commits] gzz/gfx demo/xupdf.py libutil/ObjectStorer.hxx |
Date: |
Wed, 18 Sep 2002 07:39:26 -0400 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Tuomas J. Lukka <address@hidden> 02/09/18 07:39:26
Modified files:
gfx/demo : xupdf.py
gfx/libutil : ObjectStorer.hxx
Log message:
Leak a little less memory (oops ;)
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/demo/xupdf.py.diff?tr1=1.7&tr2=1.8&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/libutil/ObjectStorer.hxx.diff?tr1=1.6&tr2=1.7&r1=text&r2=text
Patches:
Index: gzz/gfx/demo/xupdf.py
diff -c gzz/gfx/demo/xupdf.py:1.7 gzz/gfx/demo/xupdf.py:1.8
*** gzz/gfx/demo/xupdf.py:1.7 Wed Sep 18 07:23:26 2002
--- gzz/gfx/demo/xupdf.py Wed Sep 18 07:39:26 2002
***************
*** 57,62 ****
--- 57,63 ----
pdfpaper(p) for p in prect
]
+ java.lang.System.gc()
AbstractUpdateManager.chg()
Index: gzz/gfx/libutil/ObjectStorer.hxx
diff -c gzz/gfx/libutil/ObjectStorer.hxx:1.6
gzz/gfx/libutil/ObjectStorer.hxx:1.7
*** gzz/gfx/libutil/ObjectStorer.hxx:1.6 Wed Sep 4 14:05:43 2002
--- gzz/gfx/libutil/ObjectStorer.hxx Wed Sep 18 07:39:26 2002
***************
*** 45,50 ****
--- 45,57 ----
}
}
+ for(int i=vec.size()-1; i>= 0; i--) {
+ if(vec[i] == 0) {
+ vec[i] = p;
+ return i;
+ }
+ }
+
int i = vec.size();
vec.insert(vec.end(), p);
return i;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gzz-commits] gzz/gfx demo/xupdf.py libutil/ObjectStorer.hxx,
Tuomas J. Lukka <=