[Kstars-devel] kdeedu/kstars/kstars
Thomas Kabelmann
tk78 at gmx.de
Wed May 26 17:48:08 CEST 2004
CVS commit by kabelmann:
Fixed memory leak I've introduced in my last patch.
CCMAIL: kstars-devel at kde.org
M +6 -0 skyobject.cpp 1.41
M +1 -1 skyobject.h 1.40
--- kdeedu/kstars/kstars/skyobject.cpp #1.40:1.41
@@ -69,4 +69,10 @@ SkyObject::SkyObject( int t, double r, d
}
+SkyObject::~SkyObject() {
+ delete Name;
+ delete Name2;
+ delete LongName;
+}
+
void SkyObject::setLongName( const QString &longname ) {
delete LongName;
--- kdeedu/kstars/kstars/skyobject.h #1.39:1.40
@@ -75,5 +75,5 @@ public:
*Destructor (empty)
*/
- ~SkyObject() {};
+ ~SkyObject();
/**@enum TYPE
More information about the Kstars-devel
mailing list