[f-spot/FSPOT_0_6_0_STABLE] allow IOChannel to be Close()'d more than once
- From: Stephane Delcroix <sdelcroix src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [f-spot/FSPOT_0_6_0_STABLE] allow IOChannel to be Close()'d more than once
- Date: Fri, 21 Aug 2009 20:25:02 +0000 (UTC)
commit 40e28bc4e3da01661051c60bda7ff096ce1ffedd
Author: Stephane Delcroix <stephane delcroix org>
Date: Fri Aug 21 22:24:10 2009 +0200
allow IOChannel to be Close()'d more than once
src/IOChannel.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/IOChannel.cs b/src/IOChannel.cs
index 5d24891..d7e357a 100644
--- a/src/IOChannel.cs
+++ b/src/IOChannel.cs
@@ -290,7 +290,6 @@ namespace FSpot {
if (error != IntPtr.Zero)
throw new GException (error);
- g_io_channel_unref (handle);
}
~IOChannel ()
@@ -298,6 +297,7 @@ namespace FSpot {
if (data_ready_source != 0)
GLib.Source.Remove (data_ready_source);
data_ready_source = 0;
+ g_io_channel_unref (handle);
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]