projects
/
platform
/
core
/
csapi
/
tizenfx.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[Maps] Modify diposing routines
[platform/core/csapi/tizenfx.git]
/
src
/
Tizen.Maps
/
Tizen.Maps
/
PlaceList.cs
diff --git
a/src/Tizen.Maps/Tizen.Maps/PlaceList.cs
b/src/Tizen.Maps/Tizen.Maps/PlaceList.cs
index
c457b1e
..
de5a51f
100755
(executable)
--- a/
src/Tizen.Maps/Tizen.Maps/PlaceList.cs
+++ b/
src/Tizen.Maps/Tizen.Maps/PlaceList.cs
@@
-33,6
+33,14
@@
namespace Tizen.Maps
}
/// <summary>
}
/// <summary>
+ /// Destroy the PlaceList object.
+ /// </summary>
+ ~PlaceList()
+ {
+ Dispose(false);
+ }
+
+ /// <summary>
/// Gets an iterator for the addresses in this list.
/// </summary>
public IEnumerable<Place> Places
/// Gets an iterator for the addresses in this list.
/// </summary>
public IEnumerable<Place> Places
@@
-59,7
+67,7
@@
namespace Tizen.Maps
{
if (!_disposedValue)
{
{
if (!_disposedValue)
{
- handle.Dispose();
+ handle
?
.Dispose();
_disposedValue = true;
}
}
_disposedValue = true;
}
}