From 5a35a7dcefd8605a8021edccd28025c8ab3ccc20 Mon Sep 17 00:00:00 2001 From: Tambet Ingo Date: Tue, 20 Sep 2005 16:32:43 +0000 Subject: [PATCH] 2005-09-19 Tambet Ingo * glib/Opaque.cs: Set owned property in any case. Generated code will set owned to false after unref. svn path=/trunk/gtk-sharp/; revision=50309 --- ChangeLog | 5 +++++ glib/Opaque.cs | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f6a32b807..c485177e0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-09-19 Tambet Ingo + + * glib/Opaque.cs: Set owned property in any case. Generated code + will set owned to false after unref. + 2005-09-15 Mike Kestner * configure.in.in : make gtkhtml-3.8 check >= 3.8.0. diff --git a/glib/Opaque.cs b/glib/Opaque.cs index 986413ae2..2c44f389d 100644 --- a/glib/Opaque.cs +++ b/glib/Opaque.cs @@ -69,8 +69,8 @@ namespace GLib { if (opaque.owned) { // The constructor took a Ref it shouldn't have, so undo it opaque.Unref (o); - } else - opaque.owned = true; + } + opaque.owned = true; } return opaque; }