]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - csprogs.c
Implemented garbage collection of lost references to strzone strings in the PRVM...
[xonotic/darkplaces.git] / csprogs.c
index 75a8cf9448d281e786f102dd582419724fe7cb86..3bc3495c7e0412f743099b175bf7b518c4f88319 100644 (file)
--- a/csprogs.c
+++ b/csprogs.c
@@ -485,6 +485,8 @@ qboolean CL_VM_UpdateView (double frametime)
                r_refdef.scene.numlights = 0;
                // polygonbegin without draw2d arg has to guess
                prog->polygonbegin_guess2d = false;
+               // free memory for resources that are no longer referenced
+               PRVM_GarbageCollection(prog);
                // pass in width and height as parameters (EXT_CSQC_1)
                PRVM_G_FLOAT(OFS_PARM0) = vid.width;
                PRVM_G_FLOAT(OFS_PARM1) = vid.height;