1 # Do not leak a string pointer
3 # Copyright (C) 2006 - 2009 Nokia Corporation.
4 # This file is distributed under the terms of GNU LGPL license, either version 2
5 # of the License, or (at your option) any later version.
7 diff -ru gtkhtml-3.24.4/gtkhtml/htmlengine.c gtkhtml-3.24.4/gtkhtml/htmlengine.c
8 --- gtkhtml-3.24.4/gtkhtml/htmlengine.c 2007-02-15 12:41:23.000000000 +0200
9 +++ gtkhtml-3.24.4/gtkhtml/htmlengine.c 2007-02-15 12:46:07.000000000 +0200
11 e->formTextArea = NULL;
13 e->inTextArea = FALSE;
14 - e->formText = g_string_new ("");
15 + if (NULL == e->formText)
16 + e->formText = g_string_new ("");