Commit 4849d410 authored by Jehan's avatar Jehan

plug-ins: check pointer before freeing.

Thanks to Massimo for notifying about it.
parent 35ecf06f
......@@ -86,9 +86,9 @@ screenshot_kwin_shoot (ScreenshotValues *shootvals,
gint32 *image_ID,
GError **error)
{
gchar *filename;
const gchar *method = NULL;
GVariant *args = NULL;
gchar *filename = NULL;
const gchar *method = NULL;
GVariant *args = NULL;
GVariant *retval;
gint monitor = shootvals->monitor;
gint32 mask;
......@@ -197,7 +197,8 @@ screenshot_kwin_shoot (ScreenshotValues *shootvals,
failure:
g_free (filename);
if (filename)
g_free (filename);
g_object_unref (proxy);
proxy = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment