Fix segfault when replicant source can't be found

This commit is contained in:
Sasha Koshka
2023-11-14 01:05:20 -05:00
parent 192aa666ca
commit 0e99b0ceed
3 changed files with 9 additions and 4 deletions

View File

@@ -65,7 +65,8 @@ static void loadReplicants (Widget parent) {
XtAsprintf (
&fullName, "%s/%s",
replicantsDir, entry->d_name);
XmdReplicantOpen(parent, fullName);
XmdReplicantOpen (
application, parent, fullName);
XtFree(fullName);
}
}