mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-21 12:26:11 +00:00
db0d4d85a6
This fixes a double-free in getSignatureInfo() when the string was already freed by the intermediate CutterJson. But actually just using this CutterJson makes more sense than the string anyway, so let's do that. The old JsonModel rebuilt the entire structure, defeating the main purpose of a custom model in comparison to the existing QTreeWidget. And since we are holding the json structures ourselves anyway, such a custom model does not have many benefits anyway.
15 lines
222 B
C++
15 lines
222 B
C++
|
|
#ifndef JSONMODEL_H
|
|
#define JSONMODEL_H
|
|
|
|
#include <QTreeWidgetItem>
|
|
#include "CutterJson.h"
|
|
|
|
namespace Cutter {
|
|
|
|
QTreeWidgetItem *jsonTreeWidgetItem(const QString &key, const CutterJson &json);
|
|
|
|
};
|
|
|
|
#endif // JSONMODEL_H
|