diff --git a/src/core/Cutter.cpp b/src/core/Cutter.cpp index 04467ae2..696cea7f 100644 --- a/src/core/Cutter.cpp +++ b/src/core/Cutter.cpp @@ -3966,8 +3966,7 @@ QList CutterCore::getXRefsForVariable(QString variableName, boo const auto typ = findWrites ? RZ_ANALYSIS_VAR_ACCESS_TYPE_WRITE : RZ_ANALYSIS_VAR_ACCESS_TYPE_READ; QList xrefList = QList(); - RzList *vars = rz_analysis_var_all_list(core->analysis, fcn); - for (const auto &v : CutterRzList(vars)) { + for (const auto &v : CutterPVector(&fcn->vars)) { if (variableName != v->name) { continue; }