mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 19:38:53 +00:00
[ticket/14168] Unset prototype classes after use
PHPBB3-14168
This commit is contained in:
parent
2ce73a22e7
commit
4709c8a128
2 changed files with 4 additions and 1 deletions
|
@ -1125,6 +1125,7 @@ function delete_attachments($mode, $ids, $resync = true)
|
|||
$attachment_delete = $phpbb_container->get('attachment.delete');
|
||||
|
||||
$num_deleted = $attachment_delete->delete($mode, $ids, $resync);
|
||||
unset($attachment_delete);
|
||||
|
||||
return $num_deleted;
|
||||
}
|
||||
|
|
|
@ -408,8 +408,10 @@ function upload_attachment($form_name, $forum_id, $local = false, $local_storage
|
|||
|
||||
/** @var \phpbb\attachment\upload $attachment_upload */
|
||||
$attachment_upload = $phpbb_container->get('attachment.upload');
|
||||
$file = $attachment_upload->upload($form_name, $forum_id, $local, $local_storage, $is_message, $local_filedata);
|
||||
unset($attachment_upload);
|
||||
|
||||
return $attachment_upload->upload($form_name, $forum_id, $local, $local_storage, $is_message, $local_filedata);
|
||||
return $file;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue