--- poppler-0.32.0/poppler/Gfx.cc 2015-02-09 13:30:14.000000000 -0800 +++ poppler/poppler/Gfx.cc 2015-03-08 10:14:09.400380901 -0700 @@ -766,18 +766,16 @@ if (profileCommands) { GooHash *hash; - hash = out->getProfileHash (); + hash = out->getProfileHash(); if (hash) { - GooString *cmd_g; - ProfileData *data_p; + GooString *cmd_g = new GooString (obj.getCmd());; + ProfileData *data_p = (ProfileData *)hash->lookup(cmd_g);; - cmd_g = new GooString (obj.getCmd()); - data_p = (ProfileData *)hash->lookup (cmd_g); if (data_p == NULL) { data_p = new ProfileData(); hash->add (cmd_g, data_p); } - + data_p->addElement(timer.getElapsed ()); } } --- poppler-0.32.0/poppler/ProfileData.h 2012-12-27 16:17:05.000000000 -0800 +++ poppler/poppler/ProfileData.h 2015-03-08 10:27:27.538196142 -0700 @@ -21,7 +21,7 @@ public: // Constructor. - ProfileData (); + ProfileData() : count(0), total(0.0), min(0.0), max(0.0) {} // Destructor. ~ProfileData() {} --- poppler-0.32.0/poppler/ProfileData.cc 2012-12-27 16:17:03.000000000 -0800 +++ poppler/poppler/ProfileData.cc 2015-03-08 10:28:17.742561930 -0700 @@ -20,13 +20,6 @@ // ProfileData //------------------------------------------------------------------------ -ProfileData::ProfileData() { - count = 0; - total = 0.0; - min = 0.0; - max = 0.0; -} - void ProfileData::addElement (double elapsed) { if (count == 0) {