Blender  V3.3
resource_scope.cc
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #include "BLI_resource_scope.hh"
4 
5 namespace blender {
6 
8 
10 {
11  /* Free in reversed order. */
12  for (int64_t i = resources_.size(); i--;) {
13  ResourceData &data = resources_[i];
14  data.free(data.data);
15  }
16 }
17 
18 } // namespace blender
int64_t size() const
Definition: BLI_vector.hh:694
__int64 int64_t
Definition: stdint.h:89