Skip to content

Commit 85f04c5

Browse files
committed
FIX: Close each global brain in doc gen
1 parent 498414c commit 85f04c5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/sphinxext/gen_rst.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ def generate_file_rst(fname, target_dir, src_dir, plot_gallery):
180180
plt.savefig(image_file)
181181

182182
brain.save_image(image_file)
183+
brain.close()
183184

184185
except:
185186
print 80 * '_'

0 commit comments

Comments
 (0)