summaryrefslogtreecommitdiffstats
path: root/runtime/netstrm.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/netstrm.c')
-rw-r--r--runtime/netstrm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/netstrm.c b/runtime/netstrm.c
index be754aae..5e073899 100644
--- a/runtime/netstrm.c
+++ b/runtime/netstrm.c
@@ -68,6 +68,13 @@ BEGINobjDestruct(netstrm) /* be sure to specify the object type also in END and
CODESTARTobjDestruct(netstrm)
if(pThis->pDrvrData != NULL)
iRet = pThis->Drvr.Destruct(&pThis->pDrvrData);
+
+ /* driver can only be released after all data has been destructed */
+ if(pThis->Drvr.ifIsLoaded == 1) {
+ obj.ReleaseObj(__FILE__, pThis->pDrvrName+2, pThis->pDrvrName, (void*) &pThis->Drvr);
+ }
+ if(pThis->pDrvrName != NULL)
+ free(pThis->pDrvrName);
ENDobjDestruct(netstrm)