[Qt-interest] Bug in qhash.cpp, line 324

Yanhao Zhu yanhaozhu at gmail.com
Fri Jul 3 18:31:59 CEST 2009


Hi,

I can not help you with the problem. But here is the link for bug reports:
http://www.qtsoftware.com/developer/task-tracker


Best,

Yanhao Zhu

On Fri, Jul 3, 2009 at 12:19 PM, Eric Clark<eclark at ara.com> wrote:
> Hello All,
>
>
>
> Sorry to post this to this message board, but I am unfamiliar with how to
> post bugs to Qt. Maybe someone can help me out with that? I think that I
> have found a bug in Qt. I am trying to compile nedmalloc into Qt, and moc
> keeps crashing on the same line in qhash.cpp. The line number is 324 and the
> code is:
>
>
>
>   delete [] oldBuckets;
>
>
>
> The code looks fine, but when I enter the debugger, oldBuckets is a null
> pointer. I am pretty sure that it is not good practice to try and delete a
> null pointer. Maybe someone has some insight into this? If I add a check in
> nedfree for a null pointer, it all works fine, but I should not have to add
> this check.
>
>
>
> Thanks,
>
> Eric
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>




More information about the Qt-interest-old mailing list