Memory leak while creating duplicate bundle 30/111830/1
authordarpan.ka <darpan.ka@samsung.com>
Tue, 24 Jan 2017 08:39:12 +0000 (14:09 +0530)
committerHwanKyu Jhun <h.jhun@samsung.com>
Tue, 24 Jan 2017 08:33:29 +0000 (00:33 -0800)
Change-Id: Ie33aa1fddc9bf8d977c8223a40cdf16629cdeb19
Signed-off-by: darpan.ka <darpan.ka@samsung.com>
src/appcore-efl.c

index 6ff2939..79ddbee 100644 (file)
@@ -83,7 +83,6 @@ struct ui_priv {
        int (*rot_cb) (void *event_info, enum appcore_rm, void *);
        void *rot_cb_data;
        enum appcore_rm rot_mode;
-       bundle *pending_data;
        char *below_app;
 };
 
@@ -417,9 +416,6 @@ static void __do_app(enum app_event event, void *data, bundle * b)
        switch (event) {
        case AE_RESET:
                _DBG("[APP %d] RESET", _pid);
-               if (ui->pending_data)
-                       bundle_free(ui->pending_data);
-               ui->pending_data = bundle_dup(b);
                LOG(LOG_DEBUG, "LAUNCH", "[%s:Application:reset:start]", ui->name);
 
                if (ui->below_app) {
@@ -500,11 +496,6 @@ static void __do_app(enum app_event event, void *data, bundle * b)
                if (ui->state == AS_PAUSED || ui->state == AS_CREATED) {
                        _DBG("[APP %d] RESUME", _pid);
 
-                       if (ui->state == AS_CREATED) {
-                               bundle_free(ui->pending_data);
-                               ui->pending_data = NULL;
-                       }
-
                        if (ui->ops->resume) {
                                traceBegin(TTRACE_TAG_APPLICATION_MANAGER,
                                        "APPCORE:RESUME");