tray: Don't call g_object_unref(NULL)
g_object_unref() only accepts valid object instances. Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
parent
0bc370dfba
commit
bba066c44c
1 changed files with 3 additions and 1 deletions
|
@ -671,7 +671,9 @@ void SDL_DestroyTray(SDL_Tray *tray)
|
||||||
SDL_RemovePath(tray->icon_path);
|
SDL_RemovePath(tray->icon_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (tray->indicator) {
|
||||||
g_object_unref(tray->indicator);
|
g_object_unref(tray->indicator);
|
||||||
|
}
|
||||||
|
|
||||||
SDL_free(tray);
|
SDL_free(tray);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue