fix nsgtk ssl cert verify window
svn path=/trunk/netsurf/; revision=3508
This commit is contained in:
parent
14994ae2a7
commit
83d6bea6a9
|
@ -469,7 +469,7 @@ static void nsgtk_create_ssl_verify_window(struct browser_window *bw,
|
||||||
void **session = calloc(sizeof(void *), 4);
|
void **session = calloc(sizeof(void *), 4);
|
||||||
|
|
||||||
session[0] = bw;
|
session[0] = bw;
|
||||||
session[1] = c;
|
session[1] = strdup(c->url);
|
||||||
session[2] = x;
|
session[2] = x;
|
||||||
session[3] = wnd;
|
session[3] = wnd;
|
||||||
|
|
||||||
|
@ -488,15 +488,16 @@ static void nsgtk_ssl_accept(GtkButton *w, gpointer data)
|
||||||
{
|
{
|
||||||
void **session = data;
|
void **session = data;
|
||||||
struct browser_window *bw = session[0];
|
struct browser_window *bw = session[0];
|
||||||
struct content *c = session[1];
|
char *url = session[1];
|
||||||
GladeXML *x = session[2];
|
GladeXML *x = session[2];
|
||||||
GtkWindow *wnd = session[3];
|
GtkWindow *wnd = session[3];
|
||||||
|
|
||||||
urldb_set_cert_permissions(c->url, true);
|
urldb_set_cert_permissions(url, true);
|
||||||
browser_window_go(bw, c->url, 0, true);
|
browser_window_go(bw, url, 0, true);
|
||||||
|
|
||||||
gtk_widget_destroy(GTK_WIDGET(wnd));
|
gtk_widget_destroy(GTK_WIDGET(wnd));
|
||||||
g_object_unref(G_OBJECT(x));
|
g_object_unref(G_OBJECT(x));
|
||||||
|
free(url);
|
||||||
free(session);
|
free(session);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -508,6 +509,7 @@ static void nsgtk_ssl_reject(GtkButton *w, gpointer data)
|
||||||
|
|
||||||
gtk_widget_destroy(GTK_WIDGET(wnd));
|
gtk_widget_destroy(GTK_WIDGET(wnd));
|
||||||
g_object_unref(G_OBJECT(x));
|
g_object_unref(G_OBJECT(x));
|
||||||
|
free(session[1]);
|
||||||
free(session);
|
free(session);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue