You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by pn...@apache.org on 2020/02/08 13:11:06 UTC

[celix] 02/02: Fixes framework.c

This is an automated email from the ASF dual-hosted git repository.

pnoltes pushed a commit to branch feature/query_command
in repository https://gitbox.apache.org/repos/asf/celix.git

commit 487248a35b6f68fe762c5b8ae1088795087ceea6
Author: Pepijn Noltes <pe...@gmail.com>
AuthorDate: Sat Feb 8 14:09:39 2020 +0100

    Fixes framework.c
---
 libs/framework/src/framework.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libs/framework/src/framework.c b/libs/framework/src/framework.c
index 6847897..c3aef4d 100644
--- a/libs/framework/src/framework.c
+++ b/libs/framework/src/framework.c
@@ -974,11 +974,11 @@ celix_status_t fw_startBundle(framework_pt framework, long bndId, int options __
                             if (createCalled) {
                                 destroy(activator->userData, context);
                             }
-                            bundle_setContext(bundle, NULL);
-                            bundle_setActivator(bundle, NULL);
+                            bundle_setContext(entry->bnd, NULL);
+                            bundle_setActivator(entry->bnd, NULL);
                             bundleContext_destroy(context);
                             free(activator);
-                            framework_setBundleStateAndNotify(framework, bundle, OSGI_FRAMEWORK_BUNDLE_RESOLVED);
+                            framework_setBundleStateAndNotify(framework, entry->bnd, OSGI_FRAMEWORK_BUNDLE_RESOLVED);
                         }
                     }
                 }