mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 09:23:24 +00:00
Fix memory and descriptor leaks
This commit is contained in:
parent
e4532fe2a8
commit
7666e5cf36
26 changed files with 61 additions and 1 deletions
|
@ -366,7 +366,10 @@ gimp_input_device_store_add (GimpInputDeviceStore *store,
|
|||
guid,
|
||||
&didevice8,
|
||||
NULL))))
|
||||
return FALSE;
|
||||
{
|
||||
g_free (guidstring);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (FAILED ((hresult = IDirectInputDevice8_SetCooperativeLevel (didevice8,
|
||||
(HWND) gdk_win32_drawable_get_handle (store->window),
|
||||
|
@ -374,6 +377,7 @@ gimp_input_device_store_add (GimpInputDeviceStore *store,
|
|||
{
|
||||
g_warning ("IDirectInputDevice8::SetCooperativeLevel failed: %s",
|
||||
g_win32_error_message (hresult));
|
||||
g_free (guidstring);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -383,6 +387,7 @@ gimp_input_device_store_add (GimpInputDeviceStore *store,
|
|||
{
|
||||
g_warning ("IDirectInputDevice8::GetDeviceInfo failed: %s",
|
||||
g_win32_error_message (hresult));
|
||||
g_free (guidstring);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue