|
From: <pa...@fr...> - 2016-12-22 20:28:41
|
----- Original Message -----
> On jeudi 22 décembre 2016 06:46:44 CET David Chapman wrote:
> > If this is new valgrind behavior, I wouldn't discount a bug in its
> > code
>
> It certainly looks like one :)
>
> > but the developers (not me) would need to know what the QVBoxLayout
> > constructor is doing. If it's inlined, the call stack might point
> > fingers at the calling function rather than the true offender.
>
> It is not inline, and my call stack is from a non-optimized debug
> build
> anyway.
>
> > Does the QVBoxLayout constructor allocate any memory inside?
>
> Yes but not with new[].
>
> QVBoxLayout::QVBoxLayout(QWidget *parent)
> : QBoxLayout(TopToBottom, parent)
> {
> }
>
> QBoxLayout::QBoxLayout(Direction dir, QWidget *parent)
> : QLayout(*new QBoxLayoutPrivate, 0, parent)
> {
> d->dir = dir;
> }
It doesn't much look like it, but there could be calls to new [] in the QBoxLayoutPrivate ctor, or its parent classes.
Do you know if global new/delete are replaced, or if there are any class overloads?
A+
Paul
|