Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xfce
xfce4-session
Commits
ab391138
Commit
ab391138
authored
Apr 26, 2013
by
Nick Schermer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Store the watch function id to avoid possible double free (bug #9709).
parent
dee0200f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
xfce4-session/xfsm-startup.c
xfce4-session/xfsm-startup.c
+4
-3
No files found.
xfce4-session/xfsm-startup.c
View file @
ab391138
...
...
@@ -903,9 +903,10 @@ xfsm_startup_start_properties (XfsmProperties *properties,
child_watch_data
=
g_new0
(
XfsmStartupData
,
1
);
child_watch_data
->
manager
=
g_object_ref
(
manager
);
child_watch_data
->
properties
=
properties
;
g_child_watch_add_full
(
G_PRIORITY_LOW
,
properties
->
pid
,
xfsm_startup_child_watch
,
child_watch_data
,
(
GDestroyNotify
)
xfsm_startup_data_free
);
child_watch_data
->
properties
->
child_watch_id
=
g_child_watch_add_full
(
G_PRIORITY_LOW
,
properties
->
pid
,
xfsm_startup_child_watch
,
child_watch_data
,
(
GDestroyNotify
)
xfsm_startup_data_free
);
/* set a timeout -- client must register in a a certain amount of time
* or it's assumed to be broken/have issues. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment