mirror of
https://gitlab.gnome.org/GNOME/gparted
synced 2024-10-31 08:13:27 +00:00
leaked FS structures for new partition dialog
FILESYSTEMS vector copies anyway
This commit is contained in:
parent
83ff77285a
commit
18fed5030f
1 changed files with 8 additions and 8 deletions
|
@ -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 ) ;
|
||||
|
|
Loading…
Reference in a new issue