Results 1 to 2 of 2

Thread: QImage destruction is not releasing memory.

  1. #1
    Join Date
    Jun 2008
    Posts
    21
    Thanked 1 Time in 1 Post

    Default QImage destruction is not releasing memory.

    Hi,

    I am loading a image of size 210kB into QImage variable. then application increases its virtual memory by 4000kb. While deleting the Qimage object, application releases 2000kb.

    I am using Qt4. Is there any memory leak in QImage destruction in Qt 4.4.3.

    Regards,
    node_ex.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QImage destruction is not releasing memory.

    There is no memory leak, at least in Qt. If you're using Linux, don't treat the amounts of memory allocated reported by the system seriously - Linux tends to postpone deallocation of memory blocks in case the process asks for more memory shortly afterwards. In doubt use Valgrind or a similar tool to test your program.

Similar Threads

  1. reading writing qimage / qbitmap to and from memory
    By JeanC in forum Qt Programming
    Replies: 2
    Last Post: 13th May 2008, 11:28

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.