Commit e2d81028 authored by Andre Miranda's avatar Andre Miranda

Restore needs_unref variable and condition

parent 33f37db3
Pipeline #2567 passed with stages
in 1 minute and 20 seconds
...@@ -1374,11 +1374,13 @@ G_GNUC_END_IGNORE_DEPRECATIONS ...@@ -1374,11 +1374,13 @@ G_GNUC_END_IGNORE_DEPRECATIONS
else if (region == ACTIVE_WINDOW) else if (region == ACTIVE_WINDOW)
{ {
gboolean border; gboolean border;
gboolean needs_unref = TRUE;
TRACE ("Get the screenshot of the active window"); TRACE ("Get the screenshot of the active window");
window = screenshooter_get_active_window (screen, &needs_unref, &border); window = screenshooter_get_active_window (screen, &needs_unref, &border);
screenshot = get_window_screenshot (window, show_mouse, border); screenshot = get_window_screenshot (window, show_mouse, border);
g_object_unref (window); if (needs_unref)
g_object_unref (window);
} }
else if (region == SELECT) else if (region == SELECT)
{ {
......
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