Use VRT_RemoveFilter instead of VRT_RemoveVDP

parent 863006a5
......@@ -559,7 +559,7 @@ vmod_event(VRT_CTX, struct vmod_priv *priv, enum vcl_event_e e)
CHECK_OBJ(map, PIPE_VDP_MAP_MAGIC);
prev_map = NULL;
if (map->vcl == ctx->vcl && map->vdp != NULL) {
VRT_RemoveVDP(ctx, map->vdp);
VRT_RemoveFilter(ctx, NULL, map->vdp);
free(TRUST_ME(map->vdp));
map->vdp = NULL;
prev_map = map;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment