<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:serval2412@yahoo.fr" title="Julien Nabet <serval2412@yahoo.fr>"> <span class="fn">Julien Nabet</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - initNSApp() leaks memory"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=111893">bug 111893</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>sbergman@redhat.com, thb@libreoffice.org
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - initNSApp() leaks memory"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=111893#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - initNSApp() leaks memory"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=111893">bug 111893</a>
              from <span class="vcard"><a class="email" href="mailto:serval2412@yahoo.fr" title="Julien Nabet <serval2412@yahoo.fr>"> <span class="fn">Julien Nabet</span></a>
</span></b>
        <pre>I looked at initNSApp method and noticed that some observers were added (see
<a href="https://opengrok.libreoffice.org/xref/core/vcl/osx/salinst.cxx#139">https://opengrok.libreoffice.org/xref/core/vcl/osx/salinst.cxx#139</a>) but never
released.

On MacOs I tried to follow the init process but I indeed never reached the end
of Desktop::Main as announced with:
1700      // CAUTION: you do not necessarily get here e.g. on the Mac.
(see
<a href="https://opengrok.libreoffice.org/xref/core/desktop/source/app/app.cxx#1700">https://opengrok.libreoffice.org/xref/core/desktop/source/app/app.cxx#1700</a>)
The weird thing is this other line:
1701      // please put all deinitialization code into doShutdown
I can't reach doShutdown on my Mac so can't deinitialize properly.

By adding some std::cerr, I noticed, LO went until DoExecute (line 1666) then
nothing
I tried to launch it with lldb but when quitting soffice, there's no abort, LO
exits with return code 0

I'm a bit stuck here.

Thorsten: I put you in cc as MacOs expert (from 
<a href="https://wiki.documentfoundation.org/FindTheExpert">https://wiki.documentfoundation.org/FindTheExpert</a>) but know that you're dealing
with EMF/WMF part

Stephan: having noticed you had fixed some MacOs specific pbs, thought you
might be interested in this one</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>