Fix Broken SRC_URL due to repo update, not upgrading changes to actual fremantle...
[oespirit1] / gtkhtml / gtkhtml_050_check_string.diff
1 # Do not leak a string pointer
2 #
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.
6 #
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
10 @@ -5251,7 +5251,8 @@
11         e->formTextArea = NULL;
12         e->inOption = FALSE;
13         e->inTextArea = FALSE;
14 -       e->formText = g_string_new ("");
15 +       if (NULL == e->formText)
16 +               e->formText = g_string_new ("");
17  
18         e->flow = NULL;
19