Commit 900091e5 authored by Sami Rosendahl's avatar Sami Rosendahl Committed by Qt by Nokia
Browse files

Fix delete/free mismatch in QtXmlPatterns


Fixes valgrind warning like this:
Mismatched free() / delete / delete []
  at: operator delete(void*) (vg_replace_malloc.c:387)
  by: QPatternist::Decimal::toString(double) (qdecimal.cpp:121)

Reason for the warning is that toString above calls qdtoa the result of
which should be released with free(), not delete.

Change-Id: Iff07f2d07a4d65c642167fd07b980c6bdd15c117
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarRobin Burchell <robin+qt@viroteck.net>
parent 04021958
No related merge requests found
Showing with 1 addition and 1 deletion
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