--- a/talkatu/talkatuview.c Sat Jul 13 11:34:58 2019 -0500
+++ b/talkatu/talkatuview.c Sun Jul 14 22:03:17 2019 -0500
@@ -58,10 +58,9 @@
GtkTextMark *context_mark;
- /* we chance the cursor that's display while hovering over a link. To
- * avoid lots of lookups, we also store the tag for links/anchors.
+ /* we cache the cursor that's displayed while hovering over a link as well + * the tag for linux/anchors to avoid extra lookups. - GdkCursor *cursor_text;
@@ -422,8 +421,7 @@
talkatu_view_finalize(GObject *obj) {
TalkatuViewPrivate *priv = talkatu_view_get_instance_private(TALKATU_VIEW(obj));
- g_object_unref(G_OBJECT(priv->cursor_text));
- g_object_unref(G_OBJECT(priv->cursor_hand));
+ g_clear_object(&priv->cursor_hand); G_OBJECT_CLASS(talkatu_view_parent_class)->finalize(obj);
@@ -460,7 +458,6 @@
talkatu_view_init(TalkatuView *view) {
TalkatuViewPrivate *priv = talkatu_view_get_instance_private(view);
- priv->cursor_text = gdk_cursor_new_from_name(gdk_display_get_default(), "text");
priv->cursor_hand = gdk_cursor_new_from_name(gdk_display_get_default(), "pointer");
/* tell the widest class that we support tooltips. This is used to show