From: Sangyoon Jang Date: Tue, 8 Nov 2016 10:07:50 +0000 (+0900) Subject: Fix a bug in queue_job X-Git-Tag: accepted/tizen/3.0/common/20161114.081116^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d6f32e6a2885055df389c9b9c3376faf71c2401a;p=platform%2Fcore%2Fappfw%2Fpkgmgr-server.git Fix a bug in queue_job Change-Id: I101dd3b6dcafda27ed401fdb6c2dd34af6d7b585 Signed-off-by: Sangyoon Jang --- diff --git a/src/pkgmgr-server.c b/src/pkgmgr-server.c index d824e5e..d5b59ee 100644 --- a/src/pkgmgr-server.c +++ b/src/pkgmgr-server.c @@ -1343,22 +1343,29 @@ gboolean queue_job(void *data) break; case REQUEST_TYPE_ENABLE_APP: ret = __process_enable_app(job); + _free_backend_job(job); break; case REQUEST_TYPE_DISABLE_APP: ret = __process_disable_app(job); + _free_backend_job(job); break; case REQUEST_TYPE_GETSIZE: __set_backend_busy(x); ret = __process_getsize(job); + g_hash_table_insert(backend_info_table, (gpointer)ret, + (gpointer)job); break; case REQUEST_TYPE_CLEARDATA: __set_backend_busy(x); ret = __process_cleardata(job); + g_hash_table_insert(backend_info_table, (gpointer)ret, + (gpointer)job); break; case REQUEST_TYPE_CLEARCACHE: __set_backend_busy(x); ret = __process_clearcache(job); - _free_backend_job(job); + g_hash_table_insert(backend_info_table, (gpointer)ret, + (gpointer)job); break; case REQUEST_TYPE_ENABLE_GLOBAL_APP_FOR_UID: ret = __process_enable_global_app_for_uid(job);