[gtkmm] PixbufAnimation: Fix refcounting on get_iter().



commit df74b1995f6b2868c2812f0e8bf80f3397c47fb6
Author: Andrew Potter <agpotter gmail com>
Date:   Tue Dec 4 08:39:01 2012 +0100

    PixbufAnimation: Fix refcounting on get_iter().
    
    * gdk/src/pixbufanimation.hg: gdk_pixbuf_animation_get_iter() returns a new
    reference, so we should not be taking an extra reference(). Bug #688686.

 ChangeLog                  |    7 +++++++
 gdk/src/pixbufanimation.hg |    2 +-
 2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 1ae48d4..c150363 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-12-04  Andrew Potter  <agpotter gmail com>
+
+	PixbufAnimation: Fix refcounting on get_iter().
+
+	* gdk/src/pixbufanimation.hg: gdk_pixbuf_animation_get_iter() returns a new
+	reference, so we should not be taking an extra reference(). Bug #688686.
+
 2012-12-03  Kjell Ahlstedt  <kjell ahlstedt bredband net>
 
 	Builder: Add const versions of get_object() and get_widget[_derived]().
diff --git a/gdk/src/pixbufanimation.hg b/gdk/src/pixbufanimation.hg
index 84b1df9..a62c1e0 100644
--- a/gdk/src/pixbufanimation.hg
+++ b/gdk/src/pixbufanimation.hg
@@ -49,7 +49,7 @@ public:
   _WRAP_METHOD(int get_height() const, gdk_pixbuf_animation_get_height)
   _WRAP_METHOD(bool is_static_image() const, gdk_pixbuf_animation_is_static_image)
   _WRAP_METHOD(Glib::RefPtr<Pixbuf> get_static_image(), gdk_pixbuf_animation_get_static_image, refreturn)
-  _WRAP_METHOD(Glib::RefPtr<PixbufAnimationIter> get_iter(const GTimeVal* start_time), gdk_pixbuf_animation_get_iter, refreturn)
+  _WRAP_METHOD(Glib::RefPtr<PixbufAnimationIter> get_iter(const GTimeVal* start_time), gdk_pixbuf_animation_get_iter)
 };
 
 } // namespace Gdk



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]