Fixed alloc made twice that caused copy as RTF crashes on windows.

Should fix #32 #29 #22