Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Krita
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Miguel Lopez
Krita
Commits
9fc18b35
Commit
9fc18b35
authored
Sep 12, 2019
by
Boudewijn Rempt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix resource leak
CID:34707
parent
9ca2ade0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
plugins/flake/textshape/dialogs/TableOfContentsStyleModel.cpp
...ins/flake/textshape/dialogs/TableOfContentsStyleModel.cpp
+5
-0
plugins/flake/textshape/dialogs/TableOfContentsStyleModel.h
plugins/flake/textshape/dialogs/TableOfContentsStyleModel.h
+1
-1
No files found.
plugins/flake/textshape/dialogs/TableOfContentsStyleModel.cpp
View file @
9fc18b35
...
...
@@ -48,6 +48,11 @@ TableOfContentsStyleModel::TableOfContentsStyleModel(const KoStyleManager *manag
}
TableOfContentsStyleModel
::~
TableOfContentsStyleModel
()
{
delete
m_styleThumbnailer
;
}
QModelIndex
TableOfContentsStyleModel
::
index
(
int
row
,
int
column
,
const
QModelIndex
&
parent
)
const
{
if
(
row
<
0
||
column
<
0
||
column
>
1
)
{
...
...
plugins/flake/textshape/dialogs/TableOfContentsStyleModel.h
View file @
9fc18b35
...
...
@@ -30,7 +30,7 @@ class TableOfContentsStyleModel : public QAbstractTableModel
{
public:
TableOfContentsStyleModel
(
const
KoStyleManager
*
manager
,
KoTableOfContentsGeneratorInfo
*
info
);
~
TableOfContentsStyleModel
()
override
;
int
rowCount
(
const
QModelIndex
&
parent
)
const
override
;
int
columnCount
(
const
QModelIndex
&
parent
)
const
override
;
QVariant
data
(
const
QModelIndex
&
index
,
int
role
)
const
override
;
...
...
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