[xdg-desktop-portal-gnome/wip/rishi/coverity-fixes-01] remotedesktop, screencast: Remove redundant casts
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [xdg-desktop-portal-gnome/wip/rishi/coverity-fixes-01] remotedesktop, screencast: Remove redundant casts
- Date: Sat, 2 Jul 2022 17:23:41 +0000 (UTC)
commit 7f0cfda56eadd4c7ff52c3ccba56b1fbb2da256d
Author: Debarshi Ray <debarshir gnome org>
Date: Sat Jul 2 19:21:26 2022 +0200
remotedesktop, screencast: Remove redundant casts
These should have been part of commit dc89f6032da8d670.
https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/merge_requests/46
src/remotedesktop.c | 2 +-
src/screencast.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/remotedesktop.c b/src/remotedesktop.c
index d4828c8..5c7eb0e 100644
--- a/src/remotedesktop.c
+++ b/src/remotedesktop.c
@@ -130,7 +130,7 @@ remote_desktop_session_sources_selected (RemoteDesktopSession *session,
static void
remote_desktop_dialog_handle_free (RemoteDesktopDialogHandle *dialog_handle)
{
- g_clear_pointer ((GtkWindow**)&dialog_handle->dialog, gtk_window_destroy);
+ g_clear_pointer (&dialog_handle->dialog, gtk_window_destroy);
g_clear_object (&dialog_handle->external_parent);
g_object_unref (dialog_handle->request);
diff --git a/src/screencast.c b/src/screencast.c
index e983a4d..4f76a3f 100644
--- a/src/screencast.c
+++ b/src/screencast.c
@@ -100,7 +100,7 @@ is_screen_cast_session (Session *session)
static void
screen_cast_dialog_handle_free (ScreenCastDialogHandle *dialog_handle)
{
- g_clear_pointer ((GtkWindow**)&dialog_handle->dialog, gtk_window_destroy);
+ g_clear_pointer (&dialog_handle->dialog, gtk_window_destroy);
g_clear_object (&dialog_handle->external_parent);
g_object_unref (dialog_handle->request);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]