Results 1 to 10 of 10

Thread: Pixmap memory consumption

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2007
    Location
    Paris
    Posts
    459
    Thanks
    98
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt5

    Default Re: Pixmap memory consumption

    To jacek:

    Qt Code:
    1. if (mPixmapItem[i]->getPixmapName() == pixmapName
    2. &&
    3. mPixmapItem[i]->width() == pixmap.width()
    4. &&
    5. mPixmapItem[i]->height() == pixmap.height())
    6. {
    7. ZeLog::get()->Print("ZePixmapManager - DeletePixmap instance %d\n",
    8. mPixmapItem[i]->getInstance());
    9.  
    10. mPixmapItem[i]->deleteInstance();
    11. if (mPixmapItem[i]->getInstance() == 0)
    12. {
    13. ZeLog::get()->Print("ZePixmapManager - DeletePixmap complete\n");
    14.  
    15. delete mPixmapItem[i];
    16. mPixmapItem.remove(i);
    17. }
    18.  
    19. return true;
    20. }
    To copy to clipboard, switch view to plain text mode 

    I see what you mean, even though I'm not sure that's an issue since I'm returning true right after deleting an item, so the rest of the list is never checked.
    Last edited by bunjee; 29th November 2007 at 14:31.

Similar Threads

  1. Tracking memory consumption of plugins.
    By spud in forum General Programming
    Replies: 3
    Last Post: 7th September 2007, 13:14
  2. Memory Leak in my Application :-(
    By Svaths in forum Qt Programming
    Replies: 4
    Last Post: 27th July 2007, 19:42

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.