Skip to content

Commit

Permalink
ref new
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAnno committed Oct 14, 2024
1 parent 1ac43fc commit 4a0223c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/filterx/expr-variable.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include "filterx/filterx-scope.h"
#include "filterx/filterx-eval.h"
#include "filterx/filterx-variable.h"
#include "filterx/filterx-ref.h"
#include "logmsg/logmsg.h"


Expand Down Expand Up @@ -101,7 +102,7 @@ _update_repr(FilterXExpr *s, FilterXObject *new_repr)
FilterXVariable *variable = filterx_scope_lookup_variable(scope, self->handle);

g_assert(variable != NULL);
filterx_variable_set_value(variable, new_repr);
filterx_variable_set_value(variable, filterx_ref_new(new_repr));
}

static gboolean
Expand Down

0 comments on commit 4a0223c

Please sign in to comment.