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, ...@@ -86,9 +86,9 @@ screenshot_kwin_shoot (ScreenshotValues *shootvals,
gint32 *image_ID, gint32 *image_ID,
GError **error) GError **error)
{ {
gchar *filename; gchar *filename = NULL;
const gchar *method = NULL; const gchar *method = NULL;
GVariant *args = NULL; GVariant *args = NULL;
GVariant *retval; GVariant *retval;
gint monitor = shootvals->monitor; gint monitor = shootvals->monitor;
gint32 mask; gint32 mask;
...@@ -197,7 +197,8 @@ screenshot_kwin_shoot (ScreenshotValues *shootvals, ...@@ -197,7 +197,8 @@ screenshot_kwin_shoot (ScreenshotValues *shootvals,
failure: failure:
g_free (filename); if (filename)
g_free (filename);
g_object_unref (proxy); g_object_unref (proxy);
proxy = NULL; 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