X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=src%2Fctx.c;h=7289ab3a98ff878c776c276849cfca3cb2eac543;hb=9fb777241de2aa55d0798622330eea46ecda3814;hp=9b81a3bb5442c17437bf9aeeb70d6abaeeed20d0;hpb=2770ba3b4b393ee0774d75b12a4c188b700d3843;p=cascardo%2Fatompub.git diff --git a/src/ctx.c b/src/ctx.c index 9b81a3b..7289ab3 100644 --- a/src/ctx.c +++ b/src/ctx.c @@ -40,9 +40,17 @@ atom_ctx_new () void atom_error_set (AtomCtx *ctx, GError *error) { + if (ctx->error) + g_error_free (ctx->error); ctx->error = error; } +GError * +atom_error_get (AtomCtx *ctx) +{ + return ctx->error; +} + void * atom_config_data (AtomCtx *ctx) {