summaryrefslogtreecommitdiff
path: root/poppler/Gfx.cc
diff options
context:
space:
mode:
Diffstat (limited to 'poppler/Gfx.cc')
-rw-r--r--poppler/Gfx.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/poppler/Gfx.cc b/poppler/Gfx.cc
index 8041004c..9ea0b625 100644
--- a/poppler/Gfx.cc
+++ b/poppler/Gfx.cc
@@ -2523,6 +2523,8 @@ void Gfx::opSetFont(Object args[], int numArgs) {
args[1].getNum());
fflush(stdout);
}
+
+ font->incRefCnt();
state->setFont(font, args[1].getNum());
fontChanged = gTrue;
}