fixed another minor memleak (yeah i'm playing with valgrind ;) )

* include/GParted_Core.h,
  src/GParted_Core.cc: fixed another minor memleak (yeah i'm playing
  with valgrind ;) )
This commit is contained in:
Bart Hakvoort 2006-03-28 19:01:20 +00:00
parent 2e1880ee66
commit 91c4ca2b45
3 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2006-03-28 Bart Hakvoort <hakvoort@cvs.gnome.org>
* include/GParted_Core.h,
src/GParted_Core.cc: fixed another minor memleak (yeah i'm playing
with valgrind ;) )
2006-03-28 Bart Hakvoort <hakvoort@cvs.gnome.org>
* src/GParted_Core.cc: it appeared i had to free the result of

View File

@ -43,6 +43,7 @@ class GParted_Core
{
public:
GParted_Core() ;
~GParted_Core() ;
void find_supported_filesystems() ;
void set_user_devices( const std::vector<Glib::ustring> & user_devices ) ;
void get_devices( std::vector<Device> & devices ) ;

View File

@ -1257,5 +1257,10 @@ PedExceptionOption GParted_Core::ped_exception_handler( PedException * e )
return PED_EXCEPTION_UNHANDLED ;
}
GParted_Core::~GParted_Core()
{
delete p_filesystem ;
}
} //GParted