From 7ce033d797e5df5e2131e2ed459fba181eaf4658 Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Tue, 18 Aug 2009 14:14:24 -0700 Subject: Cleanup of object destruction. No need to have a per-class destruction function. This was a legacy of the distant past when the classes did not have a common base. --- libs/rs/rsContext.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libs/rs/rsContext.cpp') diff --git a/libs/rs/rsContext.cpp b/libs/rs/rsContext.cpp index 52389eadfbf5..bc0cf12fc147 100644 --- a/libs/rs/rsContext.cpp +++ b/libs/rs/rsContext.cpp @@ -395,6 +395,13 @@ void rsi_AssignName(Context *rsc, void * obj, const char *name, uint32_t len) rsc->assignName(ob, name, len); } +void rsi_ObjDestroy(Context *rsc, void *obj) +{ + ObjectBase *ob = static_cast(obj); + rsc->removeName(ob); + ob->decRef(); +} + void rsi_ContextSetDefineF(Context *rsc, const char* name, float value) { rsc->addInt32Define(name, value); -- cgit v1.2.3-59-g8ed1b