summaryrefslogtreecommitdiff
path: root/textproc/opensp/files/patch-Ptr.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/opensp/files/patch-Ptr.cxx')
-rw-r--r--textproc/opensp/files/patch-Ptr.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/textproc/opensp/files/patch-Ptr.cxx b/textproc/opensp/files/patch-Ptr.cxx
new file mode 100644
index 000000000000..400534a7f53f
--- /dev/null
+++ b/textproc/opensp/files/patch-Ptr.cxx
@@ -0,0 +1,11 @@
+--- include/Ptr.cxx.orig Fri Jul 18 14:11:13 2003
++++ include/Ptr.cxx Fri Jul 18 14:11:32 2003
+@@ -19,7 +19,7 @@
+ Ptr<T>::~Ptr()
+ {
+ if (ptr_) {
+- if (ptr_->unref())
++ if (((Resource*)ptr_)->unref())
+ delete ptr_;
+ ptr_ = 0;
+ }