Revision: 1902
http://geeqie.svn.sourceforge.net/geeqie/?rev=1902&view=rev
Author: nadvornik
Date: 2010-02-14 21:35:11 +0000 (Sun, 14 Feb 2010)
Log Message:
-----------
fixed reference count
there was a bug in reference count on writting unsaved metadata
before starting an external editor
Modified Paths:
--------------
trunk/src/utilops.c
Modified: trunk/src/utilops.c
===================================================================
--- trunk/src/utilops.c 2010-02-07 13:16:35 UTC (rev 1901)
+++ trunk/src/utilops.c 2010-02-14 21:35:11 UTC (rev 1902)
@@ -2744,11 +2744,15 @@
FileData *fd = work->data;
work = work->next;
- if (fd->change) return FALSE; /* another op. in progress, let
the caller handle it */
+ if (fd->change)
+ {
+ filelist_free(unsaved);
+ return FALSE; /* another op. in progress, let the
caller handle it */
+ }
if (fd->modified_xmp) /* has unsaved metadata */
{
- unsaved = g_list_prepend(unsaved, fd);
+ unsaved = g_list_prepend(unsaved, file_data_ref(fd));
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn