+2002-02-16 [alfons] 0.7.1claws8
+
+ * src/filesel.c
+ fix inadvertent free of NULL pointer which caused
+ sylpheed to crash when closing the save-as dialog
+ using the window close button
+
2002-02-16 [carsten] 0.7.1claws7
* src/mainwindow.[ch]
src/summaryview.c
}
}
- g_free(filesel_oldfilename);
+ if (filesel_oldfilename)
+ g_free(filesel_oldfilename);
manage_window_focus_out(filesel, NULL, NULL);
gtk_widget_destroy(filesel);
static gint delete_event(GtkWidget *widget, GdkEventAny *event, gpointer data)
{
filesel_cancel_cb(NULL, NULL);
- g_free(filesel_oldfilename);
+ if (filesel_oldfilename) {
+ g_free(filesel_oldfilename);
+ filesel_oldfilename = NULL;
+ }
return TRUE;
}