* plugins/document-manager/plugin.c: (on_docman_auto_save): Fixed a crash when there is a modified new file open, a non-modified exiting file open and autosave happen. Simplified error checking logic and avoided memory corruption. Fixes bug #Bug 518716. svn path=/trunk/; revision=3714