/** * as_image_new: * * Creates a new #AsImage. * * Returns: (transfer full): a #AsImage * **/ AsImage* as_image_new (void) { AsImage *image; image = g_object_new (AS_TYPE_IMAGE, NULL); return AS_IMAGE (image); }
/** * as_image_finalize: **/ static void as_image_finalize (GObject *object) { AsImage *image = AS_IMAGE (object); AsImagePrivate *priv = GET_PRIVATE (image); g_free (priv->url); g_free (priv->locale); G_OBJECT_CLASS (as_image_parent_class)->finalize (object); }
/** * as_image_finalize: **/ static void as_image_finalize (GObject *object) { AsImage *image = AS_IMAGE (object); AsImagePrivate *priv = GET_PRIVATE (image); if (priv->pixbuf != NULL) g_object_unref (priv->pixbuf); g_free (priv->url); g_free (priv->md5); g_free (priv->basename); G_OBJECT_CLASS (as_image_parent_class)->finalize (object); }