<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">Yesterday I have used for the first time a QQuickImageProvider but I’m having problems because now the app crashes when I terminate it.</div><div class=""><br class=""></div><div class="">Tried to do the following in order to avoid the crash but it is crashing anyway:</div><div class=""><br class=""></div><div class=""><div class="">ImageProvider imageProvider;</div><div class="">engine.addImageProvider("pictures", &imageProvider);</div><div class=""><br class=""></div><div class="">QObject::connect(&app, &QGuiApplication::aboutToQuit, [=]()</div><div class="">{</div><div class="">    e->removeImageProvider("pictures");</div><div class="">});</div></div><div class=""><br class=""></div><div class="">The crash is always something like this:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px;" class=""><!--StartFragment--><span style=" color:#aa0000;" class="">malloc: *** error for object 0x7ffeef34e900: pointer being freed was not allocated</span><!--EndFragment--></div></div><div class=""><br class=""></div><div class="">Does anyone knows how to fix this?</div><div class=""><br class=""></div><div class="">Thanks!</div><div class=""><br class=""></div><div class="">Regards,</div><div class=""><br class=""></div><div class="">Nuno</div><div class=""><br class=""></div></body></html>