plug-ins: screenshot: unref the GDBusProxy when done

This commit is contained in:
Michael Natterer 2016-03-31 11:47:59 +02:00
parent 9a2c9420c4
commit 4a45ffeef9
1 changed files with 6 additions and 0 deletions

View File

@ -137,10 +137,16 @@ screenshot_gnome_shell_shoot (ScreenshotValues *shootvals,
g_unlink (filename);
g_free (filename);
g_object_unref (proxy);
proxy = NULL;
return GIMP_PDB_SUCCESS;
}
g_free (filename);
g_object_unref (proxy);
proxy = NULL;
return GIMP_PDB_EXECUTION_ERROR;
}