Fix Bug 540074

Change-Id: I4b7f894cac2874719e26895a973e94e452af4d65
Signed-off-by: Guillaume Garzone <guillaume.garzone@laas.fr>
diff --git a/org.eclipse.om2m.core/src/main/java/org/eclipse/om2m/core/notifier/Notifier.java b/org.eclipse.om2m.core/src/main/java/org/eclipse/om2m/core/notifier/Notifier.java
index ffc9556..9e9ef2a 100644
--- a/org.eclipse.om2m.core/src/main/java/org/eclipse/om2m/core/notifier/Notifier.java
+++ b/org.eclipse.om2m.core/src/main/java/org/eclipse/om2m/core/notifier/Notifier.java
@@ -329,6 +329,9 @@
 		DBTransaction dbTransaction = dbs.getDbTransaction();

 		dbTransaction.open();

 		SubscriptionEntity subscriptionEntityToBeDeleted = dbs.getDAOFactory().getSubsciptionDAO().find(dbTransaction, resourceId);

+		// delete the resource in UriMapper table

+		UriMapper.deleteUri(subscriptionEntityToBeDeleted.getHierarchicalURI());

+		// delete the resource

 		dbs.getDAOFactory().getSubsciptionDAO().delete(dbTransaction, subscriptionEntityToBeDeleted);

 		dbTransaction.commit();

 		dbTransaction.close();