diff options
-rw-r--r-- | poppler/Annot.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/poppler/Annot.cc b/poppler/Annot.cc index 5d52b51a..7e1941c3 100644 --- a/poppler/Annot.cc +++ b/poppler/Annot.cc @@ -6157,10 +6157,7 @@ AnnotSound::AnnotSound(PDFDoc *docA, PDFRectangle *rect, Sound *soundA) : type = typeSound; annotObj.dictSet ("Subtype", Object(objName, "Sound")); - - Stream *str = soundA->getStream(); - str->incRef(); - annotObj.dictSet ("Sound", Object(str)); + annotObj.dictSet ("Sound", soundA->getObject()->copy()); initialize(docA, annotObj.getDict()); } |