Fix for dangling reference when creating WIC stream from pointer.
Authored by: crowbar27 2017-02-07
Parent: [r847]
Child: [r849]