summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2017-05-12 22:41:03 +0200
committerAlbert Astals Cid <aacid@kde.org>2017-05-12 22:41:03 +0200
commitd34e5304a9094d505ffce8ec4069d4ddf2ee5950 (patch)
tree7b53a3e2beca22781b31f05086ccbfd911a1784e
parenta7f2baa21a09454cb393dce806896e62e548f63e (diff)
Get rid of another incRef() call
-rw-r--r--poppler/Annot.cc5
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());
}