Skip to content

Commit 4a0223c

Browse files
committed
ref new
1 parent 1ac43fc commit 4a0223c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/filterx/expr-variable.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include "filterx/filterx-scope.h"
2727
#include "filterx/filterx-eval.h"
2828
#include "filterx/filterx-variable.h"
29+
#include "filterx/filterx-ref.h"
2930
#include "logmsg/logmsg.h"
3031

3132

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

103104
g_assert(variable != NULL);
104-
filterx_variable_set_value(variable, new_repr);
105+
filterx_variable_set_value(variable, filterx_ref_new(new_repr));
105106
}
106107

107108
static gboolean

0 commit comments

Comments
 (0)