commit | 6ee9658774942f7448af700fc04df0335796a3db | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Apr 27 22:06:37 2019 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Apr 27 22:06:37 2019 +0200 |
tree | 87f99c37e22f07e73e244da78686c7e59a8457f1 | |
parent | 00aa069db8132851a91cfc5ca7f58ef945c75c73 [diff] [blame] |
patch 8.1.1219: not checking for NULL return from alloc() Problem: Not checking for NULL return from alloc(). Solution: Add checks. (Martin Kunev, closes #4303, closes #4174)
diff --git a/src/gui_gtk_f.c b/src/gui_gtk_f.c index 6146fe6..1bff14b 100644 --- a/src/gui_gtk_f.c +++ b/src/gui_gtk_f.c
@@ -130,6 +130,8 @@ /* LINTED: avoid warning: conversion to 'unsigned long' */ child = g_new(GtkFormChild, 1); + if (child == NULL) + return; child->widget = child_widget; child->window = NULL;