memory cleanup in gallery

This commit is contained in:
Robin Appelman 2012-03-26 22:40:38 +02:00
parent 0ba9332358
commit 3f881f1ca5
2 changed files with 4 additions and 3 deletions

View File

@ -81,6 +81,7 @@ class OC_Gallery_Scanner {
} }
} }
imagepng($thumbnail, OC_Config::getValue("datadirectory").'/'. OC_User::getUser() .'/gallery/' . $albumName.'.png'); imagepng($thumbnail, OC_Config::getValue("datadirectory").'/'. OC_User::getUser() .'/gallery/' . $albumName.'.png');
imagedestroy($thumbnail);
} }
public static function createIntermediateAlbums() { public static function createIntermediateAlbums() {