ecore_evas: only free content when content is != NULL
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Mon, 9 Mar 2020 16:05:17 +0000 (17:05 +0100)
committerTaehyub Kim <taehyub.kim@samsung.com>
Tue, 10 Mar 2020 11:08:53 +0000 (20:08 +0900)
otherwise we might run into issues with that.

src/lib/ecore_evas/ecore_evas.c

index 62fc375..9d4e617 100644 (file)
@@ -6321,7 +6321,7 @@ ecore_evas_selection_set(Ecore_Evas *ee, unsigned int seat, Ecore_Evas_Selection
         //keep this after the claim, the claim might call cancel, which would overwrite this.
         buffers->selection_buffer[buffer] = content;
      }
-   else
+   else if (content)
      {
         eina_content_free(content);
      }