Fix segmentation fault on quitting GIF animation with -u option
Merge branch 'hotfix-fix-segfault-on-quit-animated-gif' into release-1.3