ctx = g_slice_new (AtomCtx);
ctx->error = NULL;
ctx->config_data = NULL;
+ ctx->backend = NULL;
return ctx;
}
+void
+atom_ctx_delete (AtomCtx *ctx)
+{
+ if (ctx->error)
+ g_error_free (ctx->error);
+ if (ctx->backend)
+ atom_backend_delete (ctx->backend);
+ g_slice_free (AtomCtx, ctx);
+}
+
void
atom_error_set (AtomCtx *ctx, GError *error)
{