Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Education
Marble
Commits
0fed6739
Commit
0fed6739
authored
Jul 11, 2020
by
Volker Krause
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correctly destroy read SHP objects again
parent
8ba3eee2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/plugins/runner/shp/ShpRunner.cpp
src/plugins/runner/shp/ShpRunner.cpp
+1
-1
No files found.
src/plugins/runner/shp/ShpRunner.cpp
View file @
0fed6739
...
...
@@ -82,7 +82,7 @@ GeoDataDocument *ShpRunner::parseFile(const QString &fileName, DocumentRole role
placemark
=
new
GeoDataPlacemark
;
document
->
append
(
placemark
);
SHPObject
*
shape
=
SHPReadObject
(
handle
,
i
);
std
::
unique_ptr
<
SHPObject
,
decltype
(
&
SHPDestroyObject
)
>
shape
(
SHPReadObject
(
handle
,
i
),
&
SHPDestroyObject
);
if
(
nameField
!=
-
1
)
{
const
char
*
info
=
DBFReadStringAttribute
(
dbfhandle
,
i
,
nameField
);
// TODO: defaults to utf-8 encoding, but could be also something else, optionally noted in a .cpg file
...
...
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