fix small typo
win: properly retain and free class name

fixes crashes on windows, either caused by invalid
class-name or re-use of the class-name after
undloading/reloading the .dll
preemptive strike against long titles and window class names.
prepare for cases where pull can fail.