summaryrefslogtreecommitdiff
path: root/src/resources/resource.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-10-05 21:45:27 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-10-05 21:45:27 +0000
commit4a43cb1c6e5ba304d70df7066c61c52718a5f249 (patch)
treed8aca0414b771cb2b7532d6f4f9d2ed87f77d703 /src/resources/resource.h
parent8415f7791ea8dc84148c65d04c288d8d12eb50bf (diff)
downloadmana-4a43cb1c6e5ba304d70df7066c61c52718a5f249.tar.gz
mana-4a43cb1c6e5ba304d70df7066c61c52718a5f249.tar.bz2
mana-4a43cb1c6e5ba304d70df7066c61c52718a5f249.tar.xz
mana-4a43cb1c6e5ba304d70df7066c61c52718a5f249.zip
Fixed some resource cleanup and memory leaks. Also changed the way dangling
references to resources are reported to be more informative.
Diffstat (limited to 'src/resources/resource.h')
-rw-r--r--src/resources/resource.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/resources/resource.h b/src/resources/resource.h
index ce3a62fb..fe534606 100644
--- a/src/resources/resource.h
+++ b/src/resources/resource.h
@@ -53,6 +53,12 @@ class Resource
bool
decRef();
+ /**
+ * Return the path identifying this resource.
+ */
+ const std::string&
+ getIdPath() { return mIdPath; }
+
protected:
/**
* Destructor.