Merge lp:~loic.molinari/overlay-scrollbar/fix-crashes-in-hide-thumb into lp:overlay-scrollbar
Proposed by
Loïc Molinari
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 140 | ||||
Proposed branch: | lp:~loic.molinari/overlay-scrollbar/fix-crashes-in-hide-thumb | ||||
Merge into: | lp:overlay-scrollbar | ||||
Diff against target: |
65 lines (+17/-7) 1 file modified
os/os-scrollbar.c (+17/-7) |
||||
To merge this branch: | bzr merge lp:~loic.molinari/overlay-scrollbar/fix-crashes-in-hide-thumb | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Andrea Cimitan | Approve | ||
Review via email:
|
Description of the change
GSources queued for execution in the main loop with valid pointers to objects at time t1 can be dispatched at time t2 with pointers to bjects that have been destroyed. That leads most of the time to crashes. The common practice is to ref objects each time it's queued in the main loop and unref them in the callbacks.
That's what this branch is doing for the scrollbar.
To post a comment you must log in.
patch looks simple and clear, ok!