## refcounting refcounting |

## Synopsis

    #include <gdk-pixbuf/gdk-pixbuf.h>

    GdkPixbuf *         gdk_pixbuf_ref                      (GdkPixbuf *pixbuf);
    void                gdk_pixbuf_unref                    (GdkPixbuf *pixbuf);
    void                (*GdkPixbufDestroyNotify)           (guchar *pixels,
                                                             gpointer data);

## Description

## Details

### gdk_pixbuf_ref ()

    GdkPixbuf *         gdk_pixbuf_ref                      (GdkPixbuf *pixbuf);

### Warning

`gdk_pixbuf_ref` has been deprecated since version 2.0 and should not be used in newly-written code. Use `g_object_ref()`.

Adds a reference to a pixbuf.

`pixbuf` : | A pixbuf.
Returns : | The same as the `pixbuf` argument.

### gdk_pixbuf_unref ()

    void                gdk_pixbuf_unref                    (GdkPixbuf *pixbuf);

### Warning

`gdk_pixbuf_unref` has been deprecated since version 2.0 and should not be used in newly-written code. Use `g_object_unref()`.

Removes a reference from a pixbuf.

`pixbuf` : | A pixbuf.

### GdkPixbufDestroyNotify ()

    void                (*GdkPixbufDestroyNotify)           (guchar *pixels,
                                                             gpointer data);

`pixels` : |
`data` : |