Blender Git Loki

Git Commits -> Revision 5544ded

Revision 5544ded by Nicholas Bishop (master)
February 9, 2015, 11:02 (GMT)
Fix ImBuf leaked by Image from View operator

Running this operator and and closing Blender gives this:
Error: Not freed memory blocks: 2
ImBuf_struct len: 2480 0x69ba4f8
imb_addrectImBuf len: 1048576 0x6ccc2d8

Fixed with added call to IMB_freeImBuf in BKE_image_add_from_imbuf.
Could be fixed in the operator instead, but I think the BKE function
is the correct place since the comment says it should take ownership
of the ImBuf.

Reviewers: sergey

Reviewed By: sergey

Differential Revision: https://developer.blender.org/D1084

Commit Details:

Full Hash: 5544ded2b513a41caa1673aea3dfbbc5b56380be
Parent Commit: 567e147
Lines Changed: +6, -1

2 Modified Paths:

/source/blender/blenkernel/intern/image.c (+3, -1) (Diff)
/source/blender/editors/sculpt_paint/paint_image_proj.c (+3, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021