<table><tr><td style="">aacid added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D7594" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>Is it possible that a memory leak sneaked in in this code?</p>

<p>Without this code if i run</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">./autotests/editannotationcontentstest</pre></div>

<p>i don't get any memory leak but with it i get</p>

<p>5: Direct leak of 131076 byte(s) in 4 object(s) allocated from:<br />
5:     #0 0x7fcf0e682ec0 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.3+0xc6ec0)<br />
5:     #1 0x7fcf0daeb869 in _synctex_malloc /home/kdeunstable/okular/core/synctex/synctex_parser_utils.c:73<br />
5:     #2 0x7fcf0dadb607 in synctex_reader_init_with_output_file /home/kdeunstable/okular/core/synctex/synctex_parser.c:759<br />
5:     #3 0x7fcf0dae6295 in synctex_scanner_new_with_output_file /home/kdeunstable/okular/core/synctex/synctex_parser.c:5837<br />
5:     #4 0x7fcf0d9ed585 in Okular::Document::openDocument(QString const&, QUrl const&, QMimeType const&, QString const&) /home/kdeunstable/okular/core/document.cpp:2413<br />
5:     #5 0x7fcf0dead04f in Okular::Part::doOpenFile(QMimeType const&, QString const&, bool*) /home/kdeunstable/okular/part.cpp:1295<br />
5:     #6 0x7fcf0deae866 in Okular::Part::openFile() /home/kdeunstable/okular/part.cpp:1417</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R223 Okular</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D7594" rel="noreferrer">https://phabricator.kde.org/D7594</a></div></div><br /><div><strong>To: </strong>rkflx, Okular, sander, Kile<br /><strong>Cc: </strong>mludwig, aacid<br /></div>