=== modified file 'src/sp-clippath.cpp' --- src/sp-clippath.cpp 2013-08-03 01:03:43 +0000 +++ src/sp-clippath.cpp 2014-03-27 17:57:56 +0000 @@ -277,7 +277,7 @@ SPClipPathView * sp_clippath_view_new_prepend(SPClipPathView *list, unsigned int key, Inkscape::DrawingItem *arenaitem) { - SPClipPathView *new_path_view = g_new(SPClipPathView, 1); + SPClipPathView *new_path_view = g_new0(SPClipPathView, 1); new_path_view->next = list; new_path_view->key = key; === modified file 'src/style-internal.h' --- src/style-internal.h 2014-03-11 14:52:08 +0000 +++ src/style-internal.h 2014-03-27 17:06:16 +0000 @@ -253,8 +257,8 @@ struct SPILengthOrNormal { unsigned set : 1; unsigned inherit : 1; + unsigned unit : 4; unsigned normal : 1; - unsigned unit : 4; float value; float computed; }; === modified file 'src/style.cpp' --- src/style.cpp 2014-03-25 00:15:25 +0000 +++ src/style.cpp 2014-03-27 17:55:58 +0000 @@ -3504,6 +3650,8 @@ static void sp_style_read_ilength(SPILength *val, gchar const *str) { + /* explicitly clear all the bits because valgrind sometimes complains otherwise. */ + memset(val,0,sizeof(SPILength)); if (!strcmp(str, "inherit")) { val->set = TRUE; val->inherit = TRUE; @@ -3934,7 +4096,6 @@ return; } else { SPILength length; - length.set = FALSE; sp_style_read_ilength(&length, str); if( length.set ) { val->set = TRUE;