Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Okular
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Merge Requests
34
Merge Requests
34
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Graphics
Okular
Commits
a8a79368
Commit
a8a79368
authored
Aug 27, 2017
by
Albert Astals Cid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix memory leak in text document settings d-pointers
parent
3349c9ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
core/textdocumentsettings.cpp
core/textdocumentsettings.cpp
+2
-1
core/textdocumentsettings_p.h
core/textdocumentsettings_p.h
+5
-1
No files found.
core/textdocumentsettings.cpp
View file @
a8a79368
...
...
@@ -46,6 +46,7 @@ TextDocumentSettingsWidget::~TextDocumentSettingsWidget()
Q_D
(
TextDocumentSettingsWidget
);
delete
d
->
mUi
;
delete
d
;
}
void
TextDocumentSettingsWidget
::
addRow
(
const
QString
&
labelText
,
QWidget
*
widget
)
...
...
@@ -62,7 +63,7 @@ void TextDocumentSettingsWidget::addRow( const QString& labelText, QWidget *widg
TextDocumentSettings
::
TextDocumentSettings
(
const
QString
&
config
,
QObject
*
parent
)
:
KConfigSkeleton
(
config
,
parent
)
,
d_ptr
(
new
TextDocumentSettingsPrivate
()
)
,
d_ptr
(
new
TextDocumentSettingsPrivate
(
this
)
)
{
Q_D
(
TextDocumentSettings
);
...
...
core/textdocumentsettings_p.h
View file @
a8a79368
...
...
@@ -31,9 +31,13 @@ class TextDocumentSettingsWidgetPrivate
Ui_TextDocumentSettings
*
mUi
;
};
class
TextDocumentSettingsPrivate
class
TextDocumentSettingsPrivate
:
public
QObject
{
public:
TextDocumentSettingsPrivate
(
QObject
*
parent
)
:
QObject
(
parent
)
{}
QFont
mFont
;
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment