summaryrefslogtreecommitdiff
path: root/gdk/gdkpolyreg-generic.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-03-01 22:01:51 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-03-01 22:01:51 +0000
commitb924594ef150ba5ee2bd40068bdbb3fdbbd401fa (patch)
treef283062d836c84dc005770f21cebe5c741e92c0c /gdk/gdkpolyreg-generic.c
parenta6774264ee6203ba68fa273c0c6c63e75beaf5cf (diff)
downloadgtk+-b924594ef150ba5ee2bd40068bdbb3fdbbd401fa.tar.gz
Fix some reported (but not significant) UMR's from purify. (#73160, Morten
Fri Mar 1 17:00:28 2002 Owen Taylor <otaylor@redhat.com> * gdk/gdkpolyreg-generic.c: Fix some reported (but not significant) UMR's from purify. (#73160, Morten Welinder)
Diffstat (limited to 'gdk/gdkpolyreg-generic.c')
-rw-r--r--gdk/gdkpolyreg-generic.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdk/gdkpolyreg-generic.c b/gdk/gdkpolyreg-generic.c
index b98bd5641e..838701d8cd 100644
--- a/gdk/gdkpolyreg-generic.c
+++ b/gdk/gdkpolyreg-generic.c
@@ -538,6 +538,7 @@ gdk_region_polygon(GdkPoint *Pts, gint Count, GdkFillRule rule)
*/
if (iPts == NUMPTSTOBUFFER) {
tmpPtBlock = (POINTBLOCK *)g_malloc(sizeof(POINTBLOCK));
+ tmpPtBlock->next = NULL;
curPtBlock->next = tmpPtBlock;
curPtBlock = tmpPtBlock;
pts = curPtBlock->pts;
@@ -584,6 +585,7 @@ gdk_region_polygon(GdkPoint *Pts, gint Count, GdkFillRule rule)
*/
if (iPts == NUMPTSTOBUFFER) {
tmpPtBlock = (POINTBLOCK *)g_malloc(sizeof(POINTBLOCK));
+ tmpPtBlock->next = NULL;
curPtBlock->next = tmpPtBlock;
curPtBlock = tmpPtBlock;
pts = curPtBlock->pts;