From 4b6a4b5bc25bce10367dffadf7718e373f81f299 Mon Sep 17 00:00:00 2001 From: Author Name Date: Sat, 30 Mar 2019 16:03:39 +0100 Subject: GPencil: Fix segment fault when use F3 search menu. Author of the patch: Robert Guetzkow (@rjg) --- source/blender/editors/gpencil/gpencil_data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/gpencil/gpencil_data.c') diff --git a/source/blender/editors/gpencil/gpencil_data.c b/source/blender/editors/gpencil/gpencil_data.c index 2d5ec4c5055..e3d57149d0f 100644 --- a/source/blender/editors/gpencil/gpencil_data.c +++ b/source/blender/editors/gpencil/gpencil_data.c @@ -176,7 +176,7 @@ static bool gp_data_unlink_poll(bContext *C) bGPdata **gpd_ptr = ED_gpencil_data_get_pointers(C, NULL); /* only unlink annotation datablocks */ - if (gpd_ptr != NULL) { + if ((gpd_ptr != NULL) && (*gpd_ptr != NULL)) { bGPdata *gpd = (*gpd_ptr); if ((gpd->flag & GP_DATA_ANNOTATIONS) == 0) { return false; -- cgit v1.2.3