mirror of
https://git.freebsd.org/ports.git
synced 2025-06-06 21:30:31 -04:00
11 lines
248 B
C++
11 lines
248 B
C++
--- 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;
|
|
}
|