pkgsrc/textproc/jade/patches/patch-ap
2003-09-21 20:03:52 +00:00

13 lines
304 B
Text

$NetBSD: patch-ap,v 1.1 2003/09/21 20:03:53 tron Exp $
--- include/Ptr.cxx.orig Tue Jul 22 09:20:15 2003
+++ include/Ptr.cxx Tue Jul 22 09:20:42 2003
@@ -19,7 +19,7 @@
Ptr<T>::~Ptr()
{
if (ptr_) {
- if (ptr_->unref())
+ if (((Resource*)ptr_)->unref())
delete ptr_;
ptr_ = 0;
}