projects
/
platform
/
core
/
appfw
/
appcore-widget.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f3616a
)
Use strdup instead of g_strdup
69/101069/1
author
Junghoon Park
<jh9216.park@samsung.com>
Wed, 30 Nov 2016 08:01:54 +0000
(17:01 +0900)
committer
Junghoon Park
<jh9216.park@samsung.com>
Wed, 30 Nov 2016 08:01:54 +0000
(17:01 +0900)
- strdup should be used beacase it was freed by free()
Change-Id: I77c200e75661c27e0ac5eb26f6cc9ad190d7475c
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
src/widget_app.c
patch
|
blob
|
history
diff --git
a/src/widget_app.c
b/src/widget_app.c
index
374e437
..
dc45392
100755
(executable)
--- a/
src/widget_app.c
+++ b/
src/widget_app.c
@@
-413,7
+413,7
@@
static int __instance_create(widget_class_h handle, const char *id, const char *
return WIDGET_ERROR_OUT_OF_MEMORY;
wc->state = WC_READY;
- wc->id =
g_
strdup(id);
+ wc->id = strdup(id);
wc->provider = handle;
wc->win = NULL;
wc->win_id = -1;