Skip to content

Commit c692e6b

Browse files
committed
safer updates for recursive structs
1 parent e90aebf commit c692e6b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/iregiongroupview.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ iregiongroupview_get_classmodel(iRegiongroupview *iregiongroupview)
5555
static void *
5656
iregiongroupview_unref(Regionview *regionview)
5757
{
58-
imageui_remove_regionview(regionview->imageui, regionview);
58+
if (regionview->imageui)
59+
imageui_remove_regionview(regionview->imageui, regionview);
5960

6061
return NULL;
6162
}

src/regionview.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,8 +508,6 @@ regionview_draw_line(Regionview *regionview,
508508
gtk_snapshot_append_stroke(snapshot, path, stroke, &regionview_shadow);
509509
gsk_stroke_free(stroke);
510510
}
511-
else
512-
printf("regionview_draw_line: clipped\n");
513511
}
514512

515513
static void

0 commit comments

Comments
 (0)