mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Destroy the child object in Folder::syncChildren() after destroying it's internal records and components (from r82790)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@89722 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
6b0a508502
commit
d1af532bf4
@ -117,6 +117,7 @@ class Folder extends File {
|
|||||||
|
|
||||||
// Clean up the child record from memory after use. Important!
|
// Clean up the child record from memory after use. Important!
|
||||||
$child->destroy();
|
$child->destroy();
|
||||||
|
$child = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Iterate through the unwanted children, removing them all
|
// Iterate through the unwanted children, removing them all
|
||||||
|
Loading…
x
Reference in New Issue
Block a user