dtfile: fix a segmentation fault that occurred when drag and drop file with the
same name.
This commit is contained in:
@@ -1153,9 +1153,14 @@ create_replace_rename_dialog(Widget parent_widget,
|
|||||||
|
|
||||||
|
|
||||||
XtFree(title);
|
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;
|
actions.actionList[1].msg_num = orig_msg_num;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
} /* end create_replace_rename_dialog */
|
} /* end create_replace_rename_dialog */
|
||||||
|
|||||||
Reference in New Issue
Block a user