projects
/
platform
/
core
/
telephony
/
phonenumber-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea4c87d
)
Fix NULL pointer access : "GMainLoop *_main_loop"
72/217172/1
author
INSUN PYO
<insun.pyo@samsung.com>
Thu, 7 Nov 2019 07:31:46 +0000
(16:31 +0900)
committer
INSUN PYO
<insun.pyo@samsung.com>
Thu, 7 Nov 2019 07:31:46 +0000
(16:31 +0900)
Change-Id: If5f6f970a5f37e779dd36ff6b680eb3d0a15a1e8
daemon/phnd.c
patch
|
blob
|
history
diff --git
a/daemon/phnd.c
b/daemon/phnd.c
index db8aa099eb795411e91378d82984a8d03934f53b..9081d45bf301e37857cf420700fee37c6797f16e 100644
(file)
--- a/
daemon/phnd.c
+++ b/
daemon/phnd.c
@@
-33,7
+33,6
@@
void phnd_daemon_quit()
{
INFO("phonenumber-utils daemon is quit by timeout.");
g_main_loop_quit(_main_loop);
- _main_loop = NULL;
}
/* LCOV_EXCL_STOP */
@@
-57,10
+56,10
@@
int main(int argc, char **argv)
id = phnd_dbus_init();
g_main_loop_run(_main_loop);
+ g_main_loop_unref(_main_loop);
phnd_dbus_deinit(id);
phnd_sqlite_close_db();
- g_main_loop_unref(_main_loop);
return 0;
}