mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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)
This commit is contained in:
@@ -130,6 +130,8 @@ gtk_form_put(GtkForm *form,
|
||||
|
||||
/* LINTED: avoid warning: conversion to 'unsigned long' */
|
||||
child = g_new(GtkFormChild, 1);
|
||||
if (child == NULL)
|
||||
return;
|
||||
|
||||
child->widget = child_widget;
|
||||
child->window = NULL;
|
||||
|
Reference in New Issue
Block a user