Initialize profileCommands in Gfx constructor
diff --git a/poppler/Gfx.cc b/poppler/Gfx.cc
index 2a4c9b8..60eb78a 100644
--- a/poppler/Gfx.cc
+++ b/poppler/Gfx.cc
@@ -565,6 +565,7 @@
   catalog = catalogA;
   subPage = gTrue;
   printCommands = globalParams->getPrintCommands();
+  profileCommands = globalParams->getProfileCommands();
   textHaveCSPattern = gFalse;
   drawText = gFalse;
   maskHaveCSPattern = gFalse;