Bug 443731

Summary: kdegames3-3.5.10-1.27: call to wrong C++ delete
Product: [openSUSE] openSUSE 11.1 Reporter: David Binderman <dcb314>
Component: KDE3Assignee: E-mail List <kde-maintainers>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None    
Version: Factory   
Target Milestone: ---   
Hardware: All   
OS: openSUSE 11.0   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description David Binderman 2008-11-11 12:41:22 UTC
I just checked some of the source code in the Suse Linux factory package
kdegames3-3.5.10-1.27 and I noticed the following

$ egrep "new|delete" ../BUILD/kdegames-3.5.10/kblackbox/kbbgfx.cpp | fgrep pixScaled
    pixScaled = new QPixmap * [NROFTYPES];
       pixScaled[i] = new QPixmap;
      delete pixScaled[i];
    delete pixScaled;

The last delete line look wrong.  Suggest new code like

    delete [] pixScaled; pixScaled = NULL;
Comment 1 Lubos Lunak 2008-11-11 12:53:11 UTC
It would be really nice if you could simply send patches to the actual developers of the affected packages instead of spamming our bugzilla with these harmless issues.


*** This bug has been marked as a duplicate of bug 442933 ***