Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Lifetime of memory allocation in Plugin
QtWS25 Last Chance

Lifetime of memory allocation in Plugin

Scheduled Pinned Locked Moved General and Desktop
pluginmemory allocati
3 Posts 2 Posters 825 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dewi
    wrote on 26 May 2015, 08:34 last edited by
    #1

    Hi all,

    as far as I understand a plugin is unloaded either if the programm terminates or unload is called.

    Just to be sure, is it correct that in case unload was called with success all data allocated by the plugin is deleted or has the main programm take care of the memory.

    Thanks
    Norbert

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 27 May 2015, 18:43 last edited by
      #2

      Hi and welcome to devnet,

      If you are thinking of memory allocated with new or malloc, then no it won't be done automatically for you. You still need to do proper memory management.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dewi
        wrote on 28 May 2015, 06:37 last edited by
        #3

        Sorry my question was not clear. But yes the issue was the memory allocated with new.
        Thanks for the clarification
        Norbert

        1 Reply Last reply
        0

        2/3

        27 May 2015, 18:43

        • Login

        • Login or register to search.
        2 out of 3
        • First post
          2/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved