[gparted] leaked FS structures for new partition dialog
- From: Curtis Gedak <gedakc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] leaked FS structures for new partition dialog
- Date: Tue, 5 Oct 2010 19:05:08 +0000 (UTC)
commit 18fed5030f637ddeea2c2d939b89873dbc35b3af
Author: Seth Heeren <sgheeren hotmail com>
Date: Sun Oct 3 02:44:41 2010 +0200
leaked FS structures for new partition dialog
FILESYSTEMS vector copies anyway
src/Dialog_Partition_New.cc | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/Dialog_Partition_New.cc b/src/Dialog_Partition_New.cc
index e239a85..7ecb2e5 100644
--- a/src/Dialog_Partition_New.cc
+++ b/src/Dialog_Partition_New.cc
@@ -58,17 +58,17 @@ void Dialog_Partition_New::Set_Data( const Partition & partition,
this ->FILESYSTEMS .erase( this->FILESYSTEMS .begin() + t ) ;
}
- FS *fs_tmp ;
+ FS fs_tmp ;
//add FS_UNFORMATTED
- fs_tmp = new( FS ) ;
- fs_tmp ->filesystem = GParted::FS_UNFORMATTED ;
- fs_tmp ->create = GParted::FS::LIBPARTED ;
- this ->FILESYSTEMS .push_back( * fs_tmp ) ;
+ fs_tmp .filesystem = GParted::FS_UNFORMATTED ;
+ fs_tmp .create = GParted::FS::LIBPARTED ;
+ this ->FILESYSTEMS .push_back( fs_tmp ) ;
//add FS_EXTENDED
- fs_tmp = new( FS ) ;
- fs_tmp ->filesystem = GParted::FS_EXTENDED ;
- this ->FILESYSTEMS .push_back( * fs_tmp ) ;
+ fs_tmp = FS();
+ fs_tmp .filesystem = GParted::FS_EXTENDED ;
+ fs_tmp .create = GParted::FS::NONE ;
+ this ->FILESYSTEMS .push_back( fs_tmp ) ;
//add table with selection menu's...
table_create .set_border_width( 10 ) ;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]