1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-13 19:52:20 +00:00

dtfile: fix a segmentation fault that occurred when drag and drop file with the

same name.
This commit is contained in:
Liang Chang 2021-02-13 02:23:01 +08:00
parent 49b5505667
commit 80f7fe7739

View file

@ -1153,9 +1153,14 @@ create_replace_rename_dialog(Widget parent_widget,
XtFree(title);
XtFree(actions.actionList[1].label);
actions.actionList[1].label = orig_label;
if (actions.actionList[1].label != orig_label) {
XtFree(actions.actionList[1].label);
actions.actionList[1].label = orig_label;
}
actions.actionList[1].msg_num = orig_msg_num;
return;
} /* end create_replace_rename_dialog */