Skip to content

QStandardItemModel: don't leak in mimeData()

When an invalid index is given to QStandardItemModel::mimeData() the function bails out with a warning and returns a nullptr. But the allocated data from QAIM::modelData() was not freed.

Pick-to: 6.6 6.5 6.2 5.15 Task-number: QTBUG-116532 Change-Id: Ibce9d51ea09d45f1b0eb3ca980aaff141af5bf68 Reviewed-by: Volker Hilsheimer (cherry picked from commit 37048d04)

Note: 5.15 codereview not yet finished upstream. See also:

Edited by Andreas Sturmlechner

Merge request reports