]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
free memory for each iteration DB_DataObject in fixup_utf8
authorEvan Prodromou <evan@controlyourself.ca>
Sun, 31 May 2009 01:04:35 +0000 (21:04 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Sun, 31 May 2009 01:04:35 +0000 (21:04 -0400)
scripts/fixup_utf8.php

index 2046d2b770a6ea34fc61c02ea174d29bfd61fe87..f9debd3eca994f189982160dab43b667dca6c5db 100644 (file)
@@ -163,6 +163,7 @@ class UTF8FixerUpper
 
             $notice = Notice::staticGet('id', $id);
             $notice->decache();
+            $notice->free();
 
             echo "OK\n";
         }
@@ -226,6 +227,7 @@ class UTF8FixerUpper
 
             $profile = Profile::staticGet('id', $id);
             $profile->decache();
+            $profile->free();
 
             echo "OK\n";
         }
@@ -289,6 +291,7 @@ class UTF8FixerUpper
 
             $user_group = User_group::staticGet('id', $id);
             $user_group->decache();
+            $user_group->free();
 
             echo "OK\n";
         }