[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Gavin D. Smith |
Date: |
Sun, 20 Mar 2022 04:55:28 -0400 (EDT) |
branch: master
commit b127d7fa97dd190db578f7bd3a888b0a192f8068
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Thu Nov 7 12:40:38 2019 +0000
clear node pointers on new node
---
js/infog/main.c | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/js/infog/main.c b/js/infog/main.c
index 79029b098c..4242e8eac2 100644
--- a/js/infog/main.c
+++ b/js/infog/main.c
@@ -556,6 +556,8 @@ socket_cb (GSocket *socket,
p++;
if (toc_paths)
switch_node (p);
+ free (next_link); free (prev_link); free (up_link);
+ next_link = prev_link = up_link = 0;
}
else if (!strcmp (buffer, "toc"))
{
@@ -982,16 +984,16 @@ key_press_cb (GtkWidget *widget,
g_main_loop_quit (main_loop);
break;
case GDK_KEY_n:
- webkit_web_view_load_uri (WEBKIT_WEB_VIEW(webView),
- next_link);
+ if (next_link)
+ webkit_web_view_load_uri (WEBKIT_WEB_VIEW(webView), next_link);
break;
case GDK_KEY_p:
- webkit_web_view_load_uri (WEBKIT_WEB_VIEW(webView),
- prev_link);
+ if (prev_link)
+ webkit_web_view_load_uri (WEBKIT_WEB_VIEW(webView), prev_link);
break;
case GDK_KEY_u:
- webkit_web_view_load_uri (WEBKIT_WEB_VIEW(webView),
- up_link);
+ if (up_link)
+ webkit_web_view_load_uri (WEBKIT_WEB_VIEW(webView), up_link);
break;
case GDK_KEY_i:
show_index ();
- [no subject], (continued)
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject],
Gavin D. Smith <=
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20