diff --git a/ChangeLog b/ChangeLog index 8a6b99b2..9b2af4a2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-03-28 Bart Hakvoort + + * include/GParted_Core.h, + src/GParted_Core.cc: fixed another minor memleak (yeah i'm playing + with valgrind ;) ) + 2006-03-28 Bart Hakvoort * src/GParted_Core.cc: it appeared i had to free the result of diff --git a/include/GParted_Core.h b/include/GParted_Core.h index cf7607ef..e5c28f1a 100644 --- a/include/GParted_Core.h +++ b/include/GParted_Core.h @@ -43,6 +43,7 @@ class GParted_Core { public: GParted_Core() ; + ~GParted_Core() ; void find_supported_filesystems() ; void set_user_devices( const std::vector & user_devices ) ; void get_devices( std::vector & devices ) ; diff --git a/src/GParted_Core.cc b/src/GParted_Core.cc index d85972cc..852a4d82 100644 --- a/src/GParted_Core.cc +++ b/src/GParted_Core.cc @@ -1257,5 +1257,10 @@ PedExceptionOption GParted_Core::ped_exception_handler( PedException * e ) return PED_EXCEPTION_UNHANDLED ; } + +GParted_Core::~GParted_Core() +{ + delete p_filesystem ; +} } //GParted