<p></p>
<p dir="auto">No, its not fixable AFAICT (well not easily).</p>
<p dir="auto">All signal callbacks connected to the same signal get passed the same parameters, so in this case the same pointer is passed to both.  If a pointer in the parameters is invalidated by the first callback, the second will get a bad pointer, thats how it works.</p>
<p dir="auto">Unfortunately removing the silly empty untitled is an intended function of the file open code.</p>
<p dir="auto">Personally I'd be happy to see that untitled removed from the code, but some people are offended by the empty space if no files are open, that arguments been had, so its staying.</p>
<p dir="auto">If the parameter to the callback was not a pointer to the object but was a pointer to the pointer to the object then it can be nulled if the object is invalidated, but that would break all Geany and plugins code that used the notify signal.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/2998#issuecomment-967790785">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ45EYPPQIBAB6TF4ATULX7YFANCNFSM5H6DYIIQ">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AAIOWJ4IPGF7XX2IBUK4CNLULX7YFA5CNFSM5H6DYII2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHGXVBQI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2998#issuecomment-967790785",
"url": "https://github.com/geany/geany/issues/2998#issuecomment-967790785",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>