Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=69bcbe67c2d9efea0ab806423933f1fde168357e
commit 69bcbe67c2d9efea0ab806423933f1fde168357e Author: Michel Hermier <[email protected]> Date: Tue May 13 12:53:35 2014 +0200 libpacman: Make Object destructor protected to invite subclass to use Object::release instead of delete. diff --git a/lib/libpacman/object.h b/lib/libpacman/object.h index facbfab..4852a5a 100644 --- a/lib/libpacman/object.h +++ b/lib/libpacman/object.h @@ -33,8 +33,10 @@ public: void *operator new(std::size_t size); Object(); +protected: virtual ~Object(); +public: void acquire() const; void release() const; _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
