Inconsistent use of gdk_pixbuf_animation_get_static_image in GdkPixbufAnimation implementations
While discussing the Rust bindings in https://github.com/gtk-rs/gtk-rs-core/issues/922#issuecomment-1402036602 @sdroege asked what the consensus was wrt memory handling of the returned pixbuf in get_static_image()
.
The bindings state that the object is owned by the implementation, however, when checking implementations I noticed inconsistent usage in the default implementations.
simple-animation/gdip/ani return a pixbuf that indeed gets unreffed when the GdkPixbufAnimation gets finalized.
However in io-gif-animation.c/gdk_pixbuf_gif_anim_get_static_image()
a new pixbuf is created and handed over to the caller.
My guess is that this is a bug right? I would like clarification from maintainers as to what is the expected behaviour since the only hint is the introspection annotations.