{
ChamplainTilePrivate *priv = GET_PRIVATE (object);
+ g_free (priv->uri);
+ g_free (priv->filename);
if (priv->actor != NULL)
- priv->actor = NULL;
+ {
+ g_object_unref (G_OBJECT (priv->actor));
+ priv->actor = NULL;
+ }
G_OBJECT_CLASS (champlain_tile_parent_class)->dispose (object);
}
static void
champlain_tile_finalize (GObject *object)
{
- ChamplainTilePrivate *priv = GET_PRIVATE (object);
-
- g_free (priv->uri);
- g_free (priv->filename);
- if (priv->actor != NULL)
- g_object_unref (G_OBJECT (priv->actor));
-
G_OBJECT_CLASS (champlain_tile_parent_class)->finalize (object);
}