[f-spot] Make sure sidecars are correctly committed.
- From: Ruben Vermeersch <rubenv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot] Make sure sidecars are correctly committed.
- Date: Thu, 8 Jul 2010 16:53:13 +0000 (UTC)
commit 7622ee244567fe160d55fd5b65c0a33b5011821f
Author: Ruben Vermeersch <ruben savanne be>
Date: Fri Jul 2 23:04:11 2010 +0200
Make sure sidecars are correctly committed.
src/Utils/SidecarXmpExtensions.cs | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/Utils/SidecarXmpExtensions.cs b/src/Utils/SidecarXmpExtensions.cs
index 9b4af06..ed8f53c 100644
--- a/src/Utils/SidecarXmpExtensions.cs
+++ b/src/Utils/SidecarXmpExtensions.cs
@@ -34,10 +34,12 @@ namespace FSpot.Utils
return;
var xmp = xmp_tag.Render ();
+
using (var stream = resource.WriteStream) {
using (var writer = new StreamWriter (stream)) {
writer.Write (xmp);
}
+ resource.CloseStream (stream);
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]